?
Current Path : /usr/share/emacs/24.3/lisp/calendar/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/calendar/appt.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:26 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/calendar/appt.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\210\312\313\314\315\316\317\310\303&\210\312\320\321\322\323\324\316\325\310\303& \210\312\326\327\330\316\331\310\303&\210\312\332\333\334\316\335\310\303\323\324& \210\312\336\327\337\316\331\310\303&\210\312\340\341\342\316\317\310\303&\210\312\343\327\344\316\331\310\303&\210\312\345\346\347\316\317\310\303&\210\312\350\351\352\316\353\310\303&\210\312\354\355\356\316\353\310\303&\207" [require diary-lib custom-declare-group appt nil "Appointment notification." :prefix "appt-" :group calendar custom-declare-variable appt-message-warning-time 12 "Default time in minutes before an appointment that the warning begins.\nYou probably want to make `appt-display-interval' a factor of this." :type integer appt-warning-time-regexp "warntime \\([0-9]+\\)" "Regexp matching a string giving the warning time for an appointment.\nThe first subexpression matches the time in minutes (an integer).\nThis overrides the default `appt-message-warning-time'.\nYou may want to put this inside a diary comment (see `diary-comment-start').\nFor example, to be warned 30 minutes in advance of an appointment:\n 2011/06/01 12:00 Do something ## warntime 30\n" :version "24.1" regexp appt-audible t "Non-nil means beep to indicate appointment." boolean appt-display-format 'window "How appointment reminders should be displayed.\nThe options are:\n window - use a separate window\n echo - use the echo area\n nil - no visible reminder.\nSee also `appt-audible' and `appt-display-mode-line'." (choice (const :tag "Separate window" window) (const :tag "Echo-area" echo) (const :tag "No visible display" nil)) appt-display-mode-line "Non-nil means display minutes to appointment and time on the mode line.\nThis is in addition to any other display of appointment messages.\nThe mode line updates every minute, independent of the value of\n`appt-display-interval'." appt-display-duration 10 "The number of seconds an appointment message is displayed.\nOnly relevant if reminders are to be displayed in their own window." appt-display-diary "Non-nil displays the diary when the appointment list is first initialized.\nThis occurs when this package is first activated, and then at\nmidnight when the appointment list updates." appt-display-interval 3 "Interval in minutes at which to display appointment reminders.\nOnce an appointment becomes due, Emacs displays reminders every\n`appt-display-interval' minutes. You probably want to make\n`appt-message-warning-time' be a multiple of this, so that you get\na final message displayed precisely when the appointment is due.\n\nNote that this variable controls the interval at which\n`appt-display-message' is called. The mode line display (if active)\nalways updates every minute." appt-disp-window-function 'appt-disp-window "Function called to display appointment window.\nOnly relevant if reminders are being displayed in a window.\nIt should take three string arguments: the number of minutes till\nthe appointment, the current time, and the text of the appointment.\nEach argument may also be a list, if multiple appointments are\nrelevant at any one time." function appt-delete-window-function 'appt-delete-window "Function called to remove appointment window and buffer.\nOnly relevant if reminders are being displayed in a window."] 10) #@34 Name of the appointments buffer. (defconst appt-buffer-name "*appt-buf*" (#$ . 3917)) #@686 The list of appointments for today. Use `appt-add' and `appt-delete' to add and delete appointments. The original list is generated from today's `diary-entries-list', and can be regenerated using the function `appt-check'. Each element of the generated list has the form ((MINUTES) STRING [FLAG] [WARNTIME]) where MINUTES is the time in minutes of the appointment after midnight, and STRING is the description of the appointment. FLAG and WARNTIME are not always present. A non-nil FLAG indicates that the element was made with `appt-add', so calling `appt-make-list' again should preserve it. If WARNTIME is non-nil, it is an integer to use in place of `appt-message-warning-time'. (defvar appt-time-msg-list nil (#$ . 4010)) #@58 11:59pm in minutes - number of minutes in a day minus 1. (defconst appt-max-time 1439 (#$ . 4745)) #@191 String being displayed in the mode line saying you have an appointment. The actual string includes the amount of time till the appointment. Only used if `appt-display-mode-line' is non-nil. (defvar appt-mode-string nil (#$ . 4851)) (put 'appt-mode-string 'risky-local-variable t) #@74 Time of day (mins since midnight) at which we last checked appointments. (defvar appt-prev-comp-time nil (#$ . 5137)) #@66 Internal variable used to count number of consecutive reminders. (defvar appt-display-count 0 (#$ . 5261)) #@116 Timer used for diary appointment notifications (`appt-check'). If this is non-nil, appointment checking is active. (defvar appt-timer nil (#$ . 5375)) #@358 Display a reminder about an appointment. The string STRING describes the appointment, due in integer MINS minutes. The arguments may also be lists, where each element relates to a separate appointment. The variable `appt-display-format' controls the format of the visible reminder. If `appt-audible' is non-nil, also calls `beep' for an audible reminder. (defalias 'appt-display-message #[(string mins) "\203 \306\307!\210 <\203 G\307U\203 @\n@\310=\2039 \311\312\313 \"\314\304\315\316\217\210*\317\320\321\"\314#\207\322=\205P \323\324\n<\203N \325\326\n\327#\202O \n\"\207" [appt-audible mins string appt-display-format err time beep 1 window format-time-string "%a %b %e " current-time nil (byte-code " <\203 \304\305 \"\202 \305 !\n#\207" [appt-disp-window-function mins time string mapcar number-to-string] 4) ((wrong-type-argument (byte-code "<\204 \305 @ A\"\210\202 \306\307!\210\n\310@!\f@#\210\305\207" [mins err appt-disp-window-function time string signal message "Argtype error in `appt-disp-window-function' - update it for multiple appts?" number-to-string] 4))) run-at-time format "%d sec" echo message "%s" mapconcat identity "\n" appt-display-duration appt-delete-window-function] 6 (#$ . 5533)]) #@155 Return an appointment string suitable for use in the mode-line. MIN-TO-APP is a list of minutes, as strings. If ABBREV is non-nil, abbreviates some text. (defalias 'appt-mode-line #[(min-to-app &optional abbrev) "G\304V\211\203 \305@\"?\205 @\306\307\203 \310\202 \311 \203( \312\202) \313\n\314\232\2033 \315\202U \306\316\n\206>