aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-04-10 03:41:41 +0000
committerGlenn Morris2008-04-10 03:41:41 +0000
commit1244fe39193fbe1ad533f72d4824f71d2d2d4b97 (patch)
tree078227b80db6cb36979bdcfd2386570bdfe6fc5a
parente99066081c568230818c05d1aa698440cc602c70 (diff)
downloademacs-1244fe39193fbe1ad533f72d4824f71d2d2d4b97.tar.gz
emacs-1244fe39193fbe1ad533f72d4824f71d2d2d4b97.zip
(calendar, diary): Add :prefix.
(holidays): Change :prefix. (calendar-today, holiday, calendar-holiday-marker, european-calendar-style): Change custom groups. (diary-hook, diary-display-hook): Move to diary-lib.el.
-rw-r--r--lisp/calendar/calendar.el51
1 files changed, 9 insertions, 42 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 8ddab219add..01c36bf3c5e 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -125,6 +125,7 @@
125 125
126(defgroup calendar nil 126(defgroup calendar nil
127 "Calendar and time management support." 127 "Calendar and time management support."
128 :prefix "calendar-"
128 :group 'applications) 129 :group 'applications)
129 130
130(defgroup calendar-hooks nil 131(defgroup calendar-hooks nil
@@ -134,12 +135,13 @@
134 135
135(defgroup diary nil 136(defgroup diary nil
136 "Emacs diary." 137 "Emacs diary."
138 :prefix "diary-"
137 :group 'calendar) 139 :group 'calendar)
138 140
139(defgroup holidays nil 141(defgroup holidays nil
140 "Holidays support in calendar." 142 "Holidays support in calendar."
141 :group 'calendar 143 :group 'calendar
142 :prefix "calendar-" 144 :prefix "holidays-"
143 :group 'local) 145 :group 'local)
144 146
145 147
@@ -221,7 +223,7 @@ If nil, make an icon of the frame. If non-nil, delete the frame."
221(defface calendar-today 223(defface calendar-today
222 '((t (:underline t))) 224 '((t (:underline t)))
223 "Face for indicating today's date." 225 "Face for indicating today's date."
224 :group 'diary) 226 :group 'calendar)
225;; Backward-compatibility alias. FIXME make obsolete. 227;; Backward-compatibility alias. FIXME make obsolete.
226(put 'calendar-today-face 'face-alias 'calendar-today) 228(put 'calendar-today-face 'face-alias 'calendar-today)
227 229
@@ -249,7 +251,7 @@ If nil, make an icon of the frame. If non-nil, delete the frame."
249 (t 251 (t
250 :inverse-video t)) 252 :inverse-video t))
251 "Face for indicating dates that have holidays." 253 "Face for indicating dates that have holidays."
252 :group 'diary) 254 :group 'holidays)
253;; Backward-compatibility alias. FIXME make obsolete. 255;; Backward-compatibility alias. FIXME make obsolete.
254(put 'holiday-face 'face-alias 'holiday) 256(put 'holiday-face 'face-alias 'holiday)
255 257
@@ -277,7 +279,7 @@ Used by `calendar-mark-today'."
277 "How to mark notable dates in the calendar. 279 "How to mark notable dates in the calendar.
278The value can be either a single-character string or a face." 280The value can be either a single-character string or a face."
279 :type '(choice string face) 281 :type '(choice string face)
280 :group 'calendar) 282 :group 'holidays)
281 283
282(defcustom calendar-view-holidays-initially-flag nil 284(defcustom calendar-view-holidays-initially-flag nil
283 "Non-nil means display holidays for current three month period on entry. 285 "Non-nil means display holidays for current three month period on entry.
@@ -490,7 +492,7 @@ calendar package is already loaded). Rather, use either
490 (if value 492 (if value
491 (calendar-set-date-style 'european) 493 (calendar-set-date-style 'european)
492 (calendar-set-date-style 'american))) 494 (calendar-set-date-style 'american)))
493 :group 'diary) 495 :group 'calendar)
494 496
495(make-obsolete-variable 'european-calendar-style 'calendar-date-style "23.1") 497(make-obsolete-variable 'european-calendar-style 'calendar-date-style "23.1")
496 498
@@ -733,43 +735,6 @@ The valid styles are described in the documentation of `calendar-date-style'."
733 735
734(make-obsolete 'american-calendar 'calendar-set-date-style "23.1") 736(make-obsolete 'american-calendar 'calendar-set-date-style "23.1")
735 737
736;; FIXME move to diary-lib and adjust appt.
737;; Add appt-make-list as an option?
738(defcustom diary-hook nil
739 "List of functions called after the display of the diary.
740Can be used for appointment notification."
741 :type 'hook
742 :group 'diary)
743
744(defcustom diary-display-hook nil
745 "List of functions that handle the display of the diary.
746If nil (the default), `diary-simple-display' is used. Use
747`ignore' for no diary display.
748
749Ordinarily, this just displays the diary buffer (with holidays
750indicated in the mode line), if there are any relevant entries.
751At the time these functions are called, the variable
752`diary-entries-list' is a list, in order by date, of all relevant
753diary entries in the form of ((MONTH DAY YEAR) STRING), where
754string is the diary entry for the given date. This can be used,
755for example, a different buffer for display (perhaps combined
756with holidays), or produce hard copy output.
757
758A function `diary-fancy-display' is provided for use with this
759hook; this function prepares a special noneditable diary buffer
760with the relevant diary entries that has neat day-by-day
761arrangement with headings. The fancy diary buffer will show the
762holidays unless the variable `diary-show-holidays-flag' is set to
763nil. Ordinarily, the fancy diary buffer will not show days for
764which there are no diary entries, even if that day is a holiday;
765if you want such days to be shown in the fancy diary buffer, set
766the variable `diary-list-include-blanks' non-nil."
767 :type 'hook
768 :options '(diary-fancy-display)
769 :initialize 'custom-initialize-default
770 :set 'diary-set-maybe-redraw
771 :group 'diary)
772
773(defcustom diary-show-holidays-flag t 738(defcustom diary-show-holidays-flag t
774 "Non-nil means include holidays in the diary display. 739 "Non-nil means include holidays in the diary display.
775The holidays appear in the mode line of the diary buffer, or in the 740The holidays appear in the mode line of the diary buffer, or in the
@@ -790,6 +755,8 @@ somewhat; setting it to nil makes the diary display faster."
790;; are used to using them to set calendar-holidays without having to 755;; are used to using them to set calendar-holidays without having to
791;; explicitly load this file. 756;; explicitly load this file.
792 757
758;; FIXME move to holidays.el?
759
793;;;###autoload 760;;;###autoload
794(defcustom holiday-general-holidays 761(defcustom holiday-general-holidays
795 '((holiday-fixed 1 1 "New Year's Day") 762 '((holiday-fixed 1 1 "New Year's Day")