diff options
| -rw-r--r-- | lisp/ChangeLog | 75 | ||||
| -rw-r--r-- | lisp/calendar/cal-bahai.el | 4 | ||||
| -rw-r--r-- | lisp/calendar/cal-hebrew.el | 6 | ||||
| -rw-r--r-- | lisp/calendar/cal-islam.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/cal-menu.el | 22 | ||||
| -rw-r--r-- | lisp/calendar/cal-x.el | 3 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 44 | ||||
| -rw-r--r-- | lisp/calendar/icalendar.el | 7 |
8 files changed, 121 insertions, 42 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ff1981ac7e0..1d2cf3dc7b3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,78 @@ | |||
| 1 | 2008-04-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calendar/diary-lib.el (diary-sexp-entry-symbol): | ||
| 4 | Rename sexp-diary-entry-symbol. Keep old name as alias, update users. | ||
| 5 | (diary-list-entries-hook): Rename list-diary-entries-hook. | ||
| 6 | Keep old name as alias, update users. | ||
| 7 | (diary-mark-entries-hook): Rename mark-diary-entries-hook. | ||
| 8 | Keep old name as alias, update users. | ||
| 9 | (diary-nongregorian-listing-hook): Rename | ||
| 10 | nongregorian-diary-listing-hook. Keep old name as alias, update users. | ||
| 11 | (diary-nongregorian-marking-hook): Rename | ||
| 12 | nongregorian-diary-marking-hook. Keep old name as alias, update users. | ||
| 13 | (diary-print-entries-hook): Rename print-diary-entries-hook. | ||
| 14 | Keep old name as alias, update users. | ||
| 15 | (diary-abbreviated-year-flag): Rename abbreviated-calendar-year. | ||
| 16 | Keep old name as alias, update users. | ||
| 17 | (diary-number-of-entries): Rename number-of-diary-entries. | ||
| 18 | Keep old name as alias, update users. | ||
| 19 | (view-diary-entries, list-diary-entries, show-all-diary-entries): | ||
| 20 | Give version of obsolescence. | ||
| 21 | (diary-view-other-diary-entries): Rename view-other-diary-entries. | ||
| 22 | Keep old name as alias, update callers. | ||
| 23 | (diary-add-to-list): Rename add-to-diary-list. Keep old name as alias, | ||
| 24 | update callers. | ||
| 25 | (diary-include-other-diary-files): Rename include-other-diary-files. | ||
| 26 | Keep old name as alias, update callers. | ||
| 27 | (diary-simple-display): Rename simple-diary-display. | ||
| 28 | Keep old name as alias, update callers. | ||
| 29 | (diary-fancy-display): Rename fancy-diary-display. | ||
| 30 | Keep old name as alias, update callers. | ||
| 31 | (diary-print-entries): Rename print-diary-entries. | ||
| 32 | Keep old name as alias, update callers. | ||
| 33 | (diary-marking-entries-flag): Rename marking-diary-entries. | ||
| 34 | Update users. | ||
| 35 | (diary-marking-entry-flag): Rename marking-diary-entry. Update users. | ||
| 36 | (diary-mark-entries): Rename mark-diary-entries. | ||
| 37 | Keep old name as alias, update callers. | ||
| 38 | (diary-mark-sexp-entries): Rename mark-sexp-diary-entries. | ||
| 39 | Keep old name as alias, update callers. | ||
| 40 | (diary-mark-included-diary-files): Rename mark-included-diary-files. | ||
| 41 | Keep old name as alias, update callers. | ||
| 42 | (calendar-mark-days-named): Rename mark-calendar-days-named. | ||
| 43 | Keep old name as alias, update callers. | ||
| 44 | (calendar-mark-month): Rename mark-calendar-month. | ||
| 45 | Keep old name as alias, update callers. | ||
| 46 | (calendar-mark-date-pattern): Rename mark-calendar-date-pattern. | ||
| 47 | Keep old name as alias, update callers. | ||
| 48 | (diary-sort-entries): Rename sort-diary-entries. | ||
| 49 | Keep old name as alias, update callers. | ||
| 50 | (diary-list-sexp-entries): Rename list-sexp-diary-entries. | ||
| 51 | Keep old name as alias, update callers. | ||
| 52 | (diary-make-entry): Rename make-diary-entry. Keep old name as alias, | ||
| 53 | update callers. | ||
| 54 | (diary-insert-entry): Rename insert-diary-entry. | ||
| 55 | Keep old name as alias. | ||
| 56 | (diary-insert-weekly-entry): Rename insert-weekly-diary-entry. | ||
| 57 | Keep old name as alias. | ||
| 58 | (diary-insert-monthly-entry): Rename insert-monthly-diary-entry. | ||
| 59 | Keep old name as alias. | ||
| 60 | (diary-insert-yearly-entry): Rename insert-yearly-diary-entry. | ||
| 61 | Keep old name as alias. | ||
| 62 | (diary-insert-anniversary-entry): Rename insert-anniversary-diary-entry. | ||
| 63 | Keep old name as alias. | ||
| 64 | (diary-insert-block-entry): Rename insert-block-diary-entry. | ||
| 65 | Keep old name as alias. | ||
| 66 | (diary-insert-cyclic-entry): Rename insert-cyclic-diary-entry. | ||
| 67 | Keep old name as alias. | ||
| 68 | (diary-fancy-font-lock-keywords): Rename fancy-diary-font-lock-keywords. | ||
| 69 | Keep old name as alias, update users. | ||
| 70 | (diary-fancy-display-mode): Rename fancy-diary-display-mode. | ||
| 71 | Keep old name as alias, update callers. | ||
| 72 | * calendar/cal-bahai.el, calendar/cal-hebrew.el, calendar/cal-islam.el: | ||
| 73 | * calendar/cal-menu.el, calendar/cal-x.el, calendar/calendar.el | ||
| 74 | * calendar/icalendar.el: Update for diary-lib name changes. | ||
| 75 | |||
| 1 | 2008-04-06 Chong Yidong <cyd@stupidchicken.com> | 76 | 2008-04-06 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 77 | ||
| 3 | * dired-aux.el (dired-overwrite-confirmed): Revert last change. | 78 | * dired-aux.el (dired-overwrite-confirmed): Revert last change. |
diff --git a/lisp/calendar/cal-bahai.el b/lisp/calendar/cal-bahai.el index 2d96aeac839..f49c29cb29c 100644 --- a/lisp/calendar/cal-bahai.el +++ b/lisp/calendar/cal-bahai.el | |||
| @@ -268,7 +268,7 @@ abbreviated. The Bahá'í months are numbered from 1 to 19 with Bahá being | |||
| 268 | 1 and 19 being `Alá. If a Bahá'í date diary entry begins with | 268 | 1 and 19 being `Alá. If a Bahá'í date diary entry begins with |
| 269 | `diary-nonmarking-symbol', the entry will appear in the diary listing, but | 269 | `diary-nonmarking-symbol', the entry will appear in the diary listing, but |
| 270 | will not be marked in the calendar. This function is provided for use with | 270 | will not be marked in the calendar. This function is provided for use with |
| 271 | `nongregorian-diary-listing-hook'." | 271 | `diary-nongregorian-listing-hook'." |
| 272 | (diary-list-entries-1 calendar-bahai-month-name-array | 272 | (diary-list-entries-1 calendar-bahai-month-name-array |
| 273 | diary-bahai-entry-symbol | 273 | diary-bahai-entry-symbol |
| 274 | 'calendar-bahai-from-absolute)) | 274 | 'calendar-bahai-from-absolute)) |
| @@ -349,7 +349,7 @@ Prefix argument ARG will make the entry nonmarking." | |||
| 349 | 349 | ||
| 350 | (defvar date) | 350 | (defvar date) |
| 351 | 351 | ||
| 352 | ;; To be called from list-sexp-diary-entries, where DATE is bound. | 352 | ;; To be called from diary-list-sexp-entries, where DATE is bound. |
| 353 | ;;;###diary-autoload | 353 | ;;;###diary-autoload |
| 354 | (defun diary-bahai-date () | 354 | (defun diary-bahai-date () |
| 355 | "Bahá'í calendar equivalent of date diary entry." | 355 | "Bahá'í calendar equivalent of date diary entry." |
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el index 4b28c760dde..3e93b349f54 100644 --- a/lisp/calendar/cal-hebrew.el +++ b/lisp/calendar/cal-hebrew.el | |||
| @@ -631,7 +631,7 @@ Adar II; you must use `Adar I' if you want Adar of a common | |||
| 631 | Hebrew year. If a Hebrew date diary entry begins with | 631 | Hebrew year. If a Hebrew date diary entry begins with |
| 632 | `diary-nonmarking-symbol', the entry will appear in the diary | 632 | `diary-nonmarking-symbol', the entry will appear in the diary |
| 633 | listing, but will not be marked in the calendar. This function | 633 | listing, but will not be marked in the calendar. This function |
| 634 | is provided for use with `nongregorian-diary-listing-hook'." | 634 | is provided for use with `diary-nongregorian-listing-hook'." |
| 635 | (diary-list-entries-1 calendar-hebrew-month-name-array-leap-year | 635 | (diary-list-entries-1 calendar-hebrew-month-name-array-leap-year |
| 636 | diary-hebrew-entry-symbol | 636 | diary-hebrew-entry-symbol |
| 637 | 'calendar-hebrew-from-absolute)) | 637 | 'calendar-hebrew-from-absolute)) |
| @@ -796,7 +796,7 @@ from the cursor position." | |||
| 796 | 796 | ||
| 797 | (defvar date) | 797 | (defvar date) |
| 798 | 798 | ||
| 799 | ;; To be called from list-sexp-diary-entries, where DATE is bound. | 799 | ;; To be called from diary-list-sexp-entries, where DATE is bound. |
| 800 | ;;;###diary-autoload | 800 | ;;;###diary-autoload |
| 801 | (defun diary-hebrew-date () | 801 | (defun diary-hebrew-date () |
| 802 | "Hebrew calendar equivalent of date diary entry." | 802 | "Hebrew calendar equivalent of date diary entry." |
| @@ -1132,7 +1132,7 @@ use when highlighting the day in the calendar." | |||
| 1132 | (defvar calendar-time-zone) | 1132 | (defvar calendar-time-zone) |
| 1133 | 1133 | ||
| 1134 | 1134 | ||
| 1135 | ;; To be called from list-sexp-diary-entries, where DATE is bound. | 1135 | ;; To be called from diary-list-sexp-entries, where DATE is bound. |
| 1136 | ;;;###diary-autoload | 1136 | ;;;###diary-autoload |
| 1137 | (defun diary-hebrew-sabbath-candles (&optional mark) | 1137 | (defun diary-hebrew-sabbath-candles (&optional mark) |
| 1138 | "Local time of candle lighting diary entry--applies if date is a Friday. | 1138 | "Local time of candle lighting diary entry--applies if date is a Friday. |
diff --git a/lisp/calendar/cal-islam.el b/lisp/calendar/cal-islam.el index cff6ea84bd3..48ba2e848c3 100644 --- a/lisp/calendar/cal-islam.el +++ b/lisp/calendar/cal-islam.el | |||
| @@ -257,7 +257,7 @@ from 1 to 12 with Muharram being 1 and 12 being Dhu al-Hijjah. | |||
| 257 | If an Islamic date diary entry begins with `diary-nonmarking-symbol', | 257 | If an Islamic date diary entry begins with `diary-nonmarking-symbol', |
| 258 | the entry will appear in the diary listing, but will not be | 258 | the entry will appear in the diary listing, but will not be |
| 259 | marked in the calendar. This function is provided for use with | 259 | marked in the calendar. This function is provided for use with |
| 260 | `nongregorian-diary-listing-hook'." | 260 | `diary-nongregorian-listing-hook'." |
| 261 | (diary-list-entries-1 calendar-islamic-month-name-array | 261 | (diary-list-entries-1 calendar-islamic-month-name-array |
| 262 | diary-islamic-entry-symbol | 262 | diary-islamic-entry-symbol |
| 263 | 'calendar-islamic-from-absolute)) | 263 | 'calendar-islamic-from-absolute)) |
diff --git a/lisp/calendar/cal-menu.el b/lisp/calendar/cal-menu.el index 4d43b98f662..e4aa0162d59 100644 --- a/lisp/calendar/cal-menu.el +++ b/lisp/calendar/cal-menu.el | |||
| @@ -40,17 +40,17 @@ | |||
| 40 | 40 | ||
| 41 | (defconst cal-menu-diary-menu | 41 | (defconst cal-menu-diary-menu |
| 42 | '("Diary" | 42 | '("Diary" |
| 43 | ["Other File" view-other-diary-entries] | 43 | ["Other File" diary-view-other-diary-entries] |
| 44 | ["Cursor Date" diary-view-entries] | 44 | ["Cursor Date" diary-view-entries] |
| 45 | ["Mark All" mark-diary-entries] | 45 | ["Mark All" diary-mark-entries] |
| 46 | ["Show All" diary-show-all-entries] | 46 | ["Show All" diary-show-all-entries] |
| 47 | ["Insert Diary Entry" insert-diary-entry] | 47 | ["Insert Diary Entry" diary-insert-entry] |
| 48 | ["Insert Weekly" insert-weekly-diary-entry] | 48 | ["Insert Weekly" diary-insert-weekly-entry] |
| 49 | ["Insert Monthly" insert-monthly-diary-entry] | 49 | ["Insert Monthly" diary-insert-monthly-entry] |
| 50 | ["Insert Yearly" insert-yearly-diary-entry] | 50 | ["Insert Yearly" diary-insert-yearly-entry] |
| 51 | ["Insert Anniversary" insert-anniversary-diary-entry] | 51 | ["Insert Anniversary" diary-insert-anniversary-entry] |
| 52 | ["Insert Block" insert-block-diary-entry] | 52 | ["Insert Block" diary-insert-block-entry] |
| 53 | ["Insert Cyclic" insert-cyclic-diary-entry] | 53 | ["Insert Cyclic" diary-insert-cyclic-entry] |
| 54 | ("Insert Baha'i" | 54 | ("Insert Baha'i" |
| 55 | ["One time" diary-bahai-insert-entry] | 55 | ["One time" diary-bahai-insert-entry] |
| 56 | ["Monthly" diary-bahai-insert-monthly-entry] | 56 | ["Monthly" diary-bahai-insert-monthly-entry] |
| @@ -265,7 +265,7 @@ is non-nil." | |||
| 265 | (interactive) | 265 | (interactive) |
| 266 | (save-excursion | 266 | (save-excursion |
| 267 | (calendar-mouse-goto-date (calendar-event-to-date)) | 267 | (calendar-mouse-goto-date (calendar-event-to-date)) |
| 268 | (insert-diary-entry nil))) | 268 | (diary-insert-entry nil))) |
| 269 | 269 | ||
| 270 | (defun calendar-mouse-set-mark () | 270 | (defun calendar-mouse-set-mark () |
| 271 | "Mark the date under the cursor." | 271 | "Mark the date under the cursor." |
| @@ -421,7 +421,7 @@ EVENT is the event that invoked this command." | |||
| 421 | '("Calendar" | 421 | '("Calendar" |
| 422 | ["Scroll forward" calendar-scroll-left-three-months] | 422 | ["Scroll forward" calendar-scroll-left-three-months] |
| 423 | ["Scroll backward" calendar-scroll-right-three-months] | 423 | ["Scroll backward" calendar-scroll-right-three-months] |
| 424 | ["Mark diary entries" mark-diary-entries] | 424 | ["Mark diary entries" diary-mark-entries] |
| 425 | ["List holidays" calendar-list-holidays] | 425 | ["List holidays" calendar-list-holidays] |
| 426 | ["Mark holidays" calendar-mark-holidays] | 426 | ["Mark holidays" calendar-mark-holidays] |
| 427 | ["Unmark" calendar-unmark] | 427 | ["Unmark" calendar-unmark] |
diff --git a/lisp/calendar/cal-x.el b/lisp/calendar/cal-x.el index 0aeb04a97b3..505e98c0833 100644 --- a/lisp/calendar/cal-x.el +++ b/lisp/calendar/cal-x.el | |||
| @@ -95,7 +95,8 @@ Runs `calendar-after-frame-setup-hook', selects frame, iconifies if needed." | |||
| 95 | "Display and dedicate the window associated with the diary buffer." | 95 | "Display and dedicate the window associated with the diary buffer." |
| 96 | (set-window-dedicated-p | 96 | (set-window-dedicated-p |
| 97 | (display-buffer | 97 | (display-buffer |
| 98 | (if (not (memq 'fancy-diary-display diary-display-hook)) | 98 | (if (not (or (memq 'diary-fancy-display diary-display-hook) |
| 99 | (memq 'fancy-diary-display diary-display-hook))) | ||
| 99 | (get-file-buffer diary-file) | 100 | (get-file-buffer diary-file) |
| 100 | ;; If there are no diary entries, there won't be a fancy-diary | 101 | ;; If there are no diary entries, there won't be a fancy-diary |
| 101 | ;; to dedicate, so make a basic one. | 102 | ;; to dedicate, so make a basic one. |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 96d1ca2d68c..78176e2f21c 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -105,10 +105,10 @@ | |||
| 105 | ;; central month of the 3 month calendar window | 105 | ;; central month of the 3 month calendar window |
| 106 | ;; original-date, number: bound in diary-list-entries, the arguments | 106 | ;; original-date, number: bound in diary-list-entries, the arguments |
| 107 | ;; with which that function was called. | 107 | ;; with which that function was called. |
| 108 | ;; date, entry: bound in list-sexp-diary-entries (qv) | 108 | ;; date, entry: bound in diary-list-sexp-entries (qv) |
| 109 | 109 | ||
| 110 | ;; Bound in diary-list-entries: | 110 | ;; Bound in diary-list-entries: |
| 111 | ;; diary-entries-list: use in d-l, appt.el, and by add-to-diary-list | 111 | ;; diary-entries-list: use in d-l, appt.el, and by diary-add-to-list |
| 112 | ;; diary-saved-point: only used in diary-lib.el, passed to the display func | 112 | ;; diary-saved-point: only used in diary-lib.el, passed to the display func |
| 113 | ;; date-string: only used in diary-lib.el | 113 | ;; date-string: only used in diary-lib.el |
| 114 | ;; list-only: don't modify the diary-buffer, just return a list of entries | 114 | ;; list-only: don't modify the diary-buffer, just return a list of entries |
| @@ -193,7 +193,7 @@ movement commands will not work correctly." | |||
| 193 | "Non-nil means display current date's diary entries on entry to calendar. | 193 | "Non-nil means display current date's diary entries on entry to calendar. |
| 194 | The diary is displayed in another window when the calendar is first displayed, | 194 | The diary is displayed in another window when the calendar is first displayed, |
| 195 | if the current date is visible. The number of days of diary entries displayed | 195 | if the current date is visible. The number of days of diary entries displayed |
| 196 | is governed by the variable `number-of-diary-entries'. This variable can | 196 | is governed by the variable `diary-number-of-entries'. This variable can |
| 197 | be overridden by the value of `calendar-setup'." | 197 | be overridden by the value of `calendar-setup'." |
| 198 | :type 'boolean | 198 | :type 'boolean |
| 199 | :group 'diary) | 199 | :group 'diary) |
| @@ -349,7 +349,7 @@ uses the forms of `american-date-diary-pattern': | |||
| 349 | with the remainder of the line being the diary entry string for | 349 | with the remainder of the line being the diary entry string for |
| 350 | that date. MONTH and DAY are one or two digit numbers, YEAR is a | 350 | that date. MONTH and DAY are one or two digit numbers, YEAR is a |
| 351 | number and may be written in full or abbreviated to the final two | 351 | number and may be written in full or abbreviated to the final two |
| 352 | digits (if `abbreviated-calendar-year' is non-nil). MONTHNAME | 352 | digits (if `diary-abbreviated-year-flag' is non-nil). MONTHNAME |
| 353 | and DAYNAME can be spelled in full (as specified by the variables | 353 | and DAYNAME can be spelled in full (as specified by the variables |
| 354 | `calendar-month-name-array' and `calendar-day-name-array'), or | 354 | `calendar-month-name-array' and `calendar-day-name-array'), or |
| 355 | abbreviated (as specified by `calendar-month-abbrev-array' and | 355 | abbreviated (as specified by `calendar-month-abbrev-array' and |
| @@ -410,16 +410,16 @@ Diary entries can be based on Lisp sexps. For example, the diary entry | |||
| 410 | 410 | ||
| 411 | causes the diary entry \"Vacation\" to appear from November 1 through | 411 | causes the diary entry \"Vacation\" to appear from November 1 through |
| 412 | November 10, 1990. See the documentation for the function | 412 | November 10, 1990. See the documentation for the function |
| 413 | `list-sexp-diary-entries' for more details. | 413 | `diary-list-sexp-entries' for more details. |
| 414 | 414 | ||
| 415 | Diary entries based on the Hebrew, the Islamic and/or the Baha'i | 415 | Diary entries based on the Hebrew, the Islamic and/or the Baha'i |
| 416 | calendar are also possible, but because these are somewhat slow, they | 416 | calendar are also possible, but because these are somewhat slow, they |
| 417 | are ignored unless you set the `nongregorian-diary-listing-hook' and | 417 | are ignored unless you set the `diary-nongregorian-listing-hook' and |
| 418 | the `nongregorian-diary-marking-hook' appropriately. See the | 418 | the `diary-nongregorian-marking-hook' appropriately. See the |
| 419 | documentation of these hooks for details. | 419 | documentation of these hooks for details. |
| 420 | 420 | ||
| 421 | Diary files can contain directives to include the contents of other files; for | 421 | Diary files can contain directives to include the contents of other files; for |
| 422 | details, see the documentation for the variable `list-diary-entries-hook'." | 422 | details, see the documentation for the variable `diary-list-entries-hook'." |
| 423 | :type 'file | 423 | :type 'file |
| 424 | :group 'diary) | 424 | :group 'diary) |
| 425 | 425 | ||
| @@ -712,7 +712,7 @@ Can be used for appointment notification." | |||
| 712 | 712 | ||
| 713 | (defcustom diary-display-hook nil | 713 | (defcustom diary-display-hook nil |
| 714 | "List of functions that handle the display of the diary. | 714 | "List of functions that handle the display of the diary. |
| 715 | If nil (the default), `simple-diary-display' is used. Use | 715 | If nil (the default), `diary-simple-display' is used. Use |
| 716 | `ignore' for no diary display. | 716 | `ignore' for no diary display. |
| 717 | 717 | ||
| 718 | Ordinarily, this just displays the diary buffer (with holidays | 718 | Ordinarily, this just displays the diary buffer (with holidays |
| @@ -724,7 +724,7 @@ string is the diary entry for the given date. This can be used, | |||
| 724 | for example, a different buffer for display (perhaps combined | 724 | for example, a different buffer for display (perhaps combined |
| 725 | with holidays), or produce hard copy output. | 725 | with holidays), or produce hard copy output. |
| 726 | 726 | ||
| 727 | A function `fancy-diary-display' is provided for use with this | 727 | A function `diary-fancy-display' is provided for use with this |
| 728 | hook; this function prepares a special noneditable diary buffer | 728 | hook; this function prepares a special noneditable diary buffer |
| 729 | with the relevant diary entries that has neat day-by-day | 729 | with the relevant diary entries that has neat day-by-day |
| 730 | arrangement with headings. The fancy diary buffer will show the | 730 | arrangement with headings. The fancy diary buffer will show the |
| @@ -734,7 +734,7 @@ which there are no diary entries, even if that day is a holiday; | |||
| 734 | if you want such days to be shown in the fancy diary buffer, set | 734 | if you want such days to be shown in the fancy diary buffer, set |
| 735 | the variable `diary-list-include-blanks' non-nil." | 735 | the variable `diary-list-include-blanks' non-nil." |
| 736 | :type 'hook | 736 | :type 'hook |
| 737 | :options '(fancy-diary-display) | 737 | :options '(diary-fancy-display) |
| 738 | :initialize 'custom-initialize-default | 738 | :initialize 'custom-initialize-default |
| 739 | :set 'diary-set-maybe-redraw | 739 | :set 'diary-set-maybe-redraw |
| 740 | :group 'diary) | 740 | :group 'diary) |
| @@ -1382,7 +1382,7 @@ separate frame, depending on the value of `calendar-setup'. | |||
| 1382 | 1382 | ||
| 1383 | If `view-diary-entries-initially' is non-nil, also displays the | 1383 | If `view-diary-entries-initially' is non-nil, also displays the |
| 1384 | diary entries for the current date (or however many days | 1384 | diary entries for the current date (or however many days |
| 1385 | `number-of-diary-entries' specifies). This variable can be | 1385 | `diary-number-of-entries' specifies). This variable can be |
| 1386 | overridden by `calendar-setup'. As well as being displayed, | 1386 | overridden by `calendar-setup'. As well as being displayed, |
| 1387 | diary entries can also be marked on the calendar (see | 1387 | diary entries can also be marked on the calendar (see |
| 1388 | `mark-diary-entries-in-calendar'). | 1388 | `mark-diary-entries-in-calendar'). |
| @@ -1466,7 +1466,7 @@ Optional integers MON and YR are used instead of today's date." | |||
| 1466 | (calendar-mark-holidays) | 1466 | (calendar-mark-holidays) |
| 1467 | (and in-calendar-window (sit-for 0))) | 1467 | (and in-calendar-window (sit-for 0))) |
| 1468 | (unwind-protect | 1468 | (unwind-protect |
| 1469 | (if mark-diary-entries-in-calendar (mark-diary-entries)) | 1469 | (if mark-diary-entries-in-calendar (diary-mark-entries)) |
| 1470 | (if today-visible | 1470 | (if today-visible |
| 1471 | (run-hooks 'today-visible-calendar-hook) | 1471 | (run-hooks 'today-visible-calendar-hook) |
| 1472 | (run-hooks 'today-invisible-calendar-hook))))) | 1472 | (run-hooks 'today-invisible-calendar-hook))))) |
| @@ -1634,9 +1634,9 @@ after the inserted text. Returns t." | |||
| 1634 | (define-key map "h" 'calendar-cursor-holidays) | 1634 | (define-key map "h" 'calendar-cursor-holidays) |
| 1635 | (define-key map "x" 'calendar-mark-holidays) | 1635 | (define-key map "x" 'calendar-mark-holidays) |
| 1636 | (define-key map "u" 'calendar-unmark) | 1636 | (define-key map "u" 'calendar-unmark) |
| 1637 | (define-key map "m" 'mark-diary-entries) | 1637 | (define-key map "m" 'diary-mark-entries) |
| 1638 | (define-key map "d" 'diary-view-entries) | 1638 | (define-key map "d" 'diary-view-entries) |
| 1639 | (define-key map "D" 'view-other-diary-entries) | 1639 | (define-key map "D" 'diary-view-other-diary-entries) |
| 1640 | (define-key map "s" 'diary-show-all-entries) | 1640 | (define-key map "s" 'diary-show-all-entries) |
| 1641 | (define-key map "pd" 'calendar-print-day-of-year) | 1641 | (define-key map "pd" 'calendar-print-day-of-year) |
| 1642 | (define-key map "pC" 'calendar-chinese-print-date) | 1642 | (define-key map "pC" 'calendar-chinese-print-date) |
| @@ -1652,13 +1652,13 @@ after the inserted text. Returns t." | |||
| 1652 | (define-key map "pf" 'calendar-french-print-date) | 1652 | (define-key map "pf" 'calendar-french-print-date) |
| 1653 | (define-key map "pm" 'calendar-mayan-print-date) | 1653 | (define-key map "pm" 'calendar-mayan-print-date) |
| 1654 | (define-key map "po" 'calendar-print-other-dates) | 1654 | (define-key map "po" 'calendar-print-other-dates) |
| 1655 | (define-key map "id" 'insert-diary-entry) | 1655 | (define-key map "id" 'diary-insert-entry) |
| 1656 | (define-key map "iw" 'insert-weekly-diary-entry) | 1656 | (define-key map "iw" 'diary-insert-weekly-entry) |
| 1657 | (define-key map "im" 'insert-monthly-diary-entry) | 1657 | (define-key map "im" 'diary-insert-monthly-entry) |
| 1658 | (define-key map "iy" 'insert-yearly-diary-entry) | 1658 | (define-key map "iy" 'diary-insert-yearly-entry) |
| 1659 | (define-key map "ia" 'insert-anniversary-diary-entry) | 1659 | (define-key map "ia" 'diary-insert-anniversary-entry) |
| 1660 | (define-key map "ib" 'insert-block-diary-entry) | 1660 | (define-key map "ib" 'diary-insert-block-entry) |
| 1661 | (define-key map "ic" 'insert-cyclic-diary-entry) | 1661 | (define-key map "ic" 'diary-insert-cyclic-entry) |
| 1662 | (define-key map "ihd" 'diary-hebrew-insert-entry) | 1662 | (define-key map "ihd" 'diary-hebrew-insert-entry) |
| 1663 | (define-key map "ihm" 'diary-hebrew-insert-monthly-entry) | 1663 | (define-key map "ihm" 'diary-hebrew-insert-monthly-entry) |
| 1664 | (define-key map "ihy" 'diary-hebrew-insert-yeary-entry) | 1664 | (define-key map "ihy" 'diary-hebrew-insert-yeary-entry) |
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el index 6c4469afdbd..1c8c83325f4 100644 --- a/lisp/calendar/icalendar.el +++ b/lisp/calendar/icalendar.el | |||
| @@ -2126,8 +2126,11 @@ the entry." | |||
| 2126 | (unless diary-file | 2126 | (unless diary-file |
| 2127 | (setq diary-file | 2127 | (setq diary-file |
| 2128 | (read-file-name "Add appointment to this diary file: "))) | 2128 | (read-file-name "Add appointment to this diary file: "))) |
| 2129 | ;; Note: make-diary-entry will add a trailing blank char.... :( | 2129 | ;; Note: diary-make-entry will add a trailing blank char.... :( |
| 2130 | (make-diary-entry string non-marking diary-file))) | 2130 | (funcall (if (fboundp 'diary-make-entry) |
| 2131 | 'diary-make-entry | ||
| 2132 | 'make-diary-entry) | ||
| 2133 | string non-marking diary-file))) | ||
| 2131 | ;; return diary-file in case it has been changed interactively | 2134 | ;; return diary-file in case it has been changed interactively |
| 2132 | diary-file) | 2135 | diary-file) |
| 2133 | 2136 | ||