diff options
| author | Glenn Morris | 2008-04-10 03:45:26 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-10 03:45:26 +0000 |
| commit | 66d20000c523e2b5dd137fee481d007a4fcba267 (patch) | |
| tree | d5ab33ea621d55e0c3f426bd46b6b908dcd15a1b | |
| parent | 724a25b25eb394fe532e726a3cc682e92523444b (diff) | |
| download | emacs-66d20000c523e2b5dd137fee481d007a4fcba267.tar.gz emacs-66d20000c523e2b5dd137fee481d007a4fcba267.zip | |
(diary-hook, diary-display-hook): Move here from calendar.el.
(diary-hook): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 25 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 35 |
2 files changed, 60 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3e9320cfcee..5fb0f0c0f95 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2008-04-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (MH_E_DIR): New variable. | ||
| 4 | (MH_E_SRC): Restore variable removed 2008-03-13. | ||
| 5 | (mh-loaddefs.el): Depend on $MH_E_SRC. | ||
| 6 | (CAL_DIR, CAL_SRC): New variables. | ||
| 7 | (cal-loaddefs.el, diary-loaddefs.el, hol-loaddefs.el): | ||
| 8 | Depend on CAL_SRC. | ||
| 9 | |||
| 10 | * calendar/calendar.el (calendar, diary): Add :prefix. | ||
| 11 | (holidays): Change :prefix. | ||
| 12 | (calendar-today, holiday, calendar-holiday-marker) | ||
| 13 | (european-calendar-style): Change custom groups. | ||
| 14 | |||
| 15 | * calendar/calendar.el (diary-hook, diary-display-hook): | ||
| 16 | Move to diary-lib.el. | ||
| 17 | * calendar/diary-lib.el (diary-hook, diary-display-hook): | ||
| 18 | Move here from calendar.el. | ||
| 19 | * calendar/appt.el: Require diary-lib rather than calendar. | ||
| 20 | * calendar/cal-x.el (diary-display-hook): Declare for compiler. | ||
| 21 | |||
| 22 | * calendar/appt.el (appt): Add :prefix. | ||
| 23 | |||
| 24 | * calendar/diary-lib.el (diary-hook): Doc fix. | ||
| 25 | |||
| 1 | 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca> | 26 | 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 27 | ||
| 3 | * minibuffer.el (minibuffer--double-dollars, read-file-name-internal): | 28 | * minibuffer.el (minibuffer--double-dollars, read-file-name-internal): |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 7aea5d9f868..61b46a2cc97 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -139,6 +139,41 @@ See the documentation for the function `diary-list-sexp-entries'." | |||
| 139 | (define-obsolete-variable-alias 'sexp-diary-entry-symbol | 139 | (define-obsolete-variable-alias 'sexp-diary-entry-symbol |
| 140 | 'diary-sexp-entry-symbol "23.1") | 140 | 'diary-sexp-entry-symbol "23.1") |
| 141 | 141 | ||
| 142 | (defcustom diary-hook nil | ||
| 143 | "List of functions called after the display of the diary. | ||
| 144 | Used for example by the appointment package - see `appt-activate'." | ||
| 145 | :type 'hook | ||
| 146 | :group 'diary) | ||
| 147 | |||
| 148 | (defcustom diary-display-hook nil | ||
| 149 | "List of functions that handle the display of the diary. | ||
| 150 | If nil (the default), `diary-simple-display' is used. Use | ||
| 151 | `ignore' for no diary display. | ||
| 152 | |||
| 153 | Ordinarily, this just displays the diary buffer (with holidays | ||
| 154 | indicated in the mode line), if there are any relevant entries. | ||
| 155 | At the time these functions are called, the variable | ||
| 156 | `diary-entries-list' is a list, in order by date, of all relevant | ||
| 157 | diary entries in the form of ((MONTH DAY YEAR) STRING), where | ||
| 158 | string is the diary entry for the given date. This can be used, | ||
| 159 | for example, a different buffer for display (perhaps combined | ||
| 160 | with holidays), or produce hard copy output. | ||
| 161 | |||
| 162 | A function `diary-fancy-display' is provided for use with this | ||
| 163 | hook; this function prepares a special noneditable diary buffer | ||
| 164 | with the relevant diary entries that has neat day-by-day | ||
| 165 | arrangement with headings. The fancy diary buffer will show the | ||
| 166 | holidays unless the variable `diary-show-holidays-flag' is set to | ||
| 167 | nil. Ordinarily, the fancy diary buffer will not show days for | ||
| 168 | which there are no diary entries, even if that day is a holiday; | ||
| 169 | if you want such days to be shown in the fancy diary buffer, set | ||
| 170 | the variable `diary-list-include-blanks' non-nil." | ||
| 171 | :type 'hook | ||
| 172 | :options '(diary-fancy-display) | ||
| 173 | :initialize 'custom-initialize-default | ||
| 174 | :set 'diary-set-maybe-redraw | ||
| 175 | :group 'diary) | ||
| 176 | |||
| 142 | (defcustom diary-list-entries-hook nil | 177 | (defcustom diary-list-entries-hook nil |
| 143 | "List of functions called after diary file is culled for relevant entries. | 178 | "List of functions called after diary file is culled for relevant entries. |
| 144 | You might wish to add `diary-include-other-diary-files', in which case | 179 | You might wish to add `diary-include-other-diary-files', in which case |