aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-13 05:54:06 +0000
committerGlenn Morris2008-03-13 05:54:06 +0000
commit4ca17d754c84a9856b8acbbd82c041d0e9fa1ee5 (patch)
tree4c250ba7086bd848eb5b5acea2075644964e467d
parentfb97eeac20f11e5aa692851472c9f81ede40a71d (diff)
downloademacs-4ca17d754c84a9856b8acbbd82c041d0e9fa1ee5.tar.gz
emacs-4ca17d754c84a9856b8acbbd82c041d0e9fa1ee5.zip
(hol-loaddefs): Load this rather than explicit autoloads.
Add calendar-specific autoload cookies.
-rw-r--r--lisp/calendar/holidays.el49
1 files changed, 8 insertions, 41 deletions
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el
index 8436b3a242d..3ed7fcfdac0 100644
--- a/lisp/calendar/holidays.el
+++ b/lisp/calendar/holidays.el
@@ -52,46 +52,8 @@
52 52
53(require 'calendar) 53(require 'calendar)
54 54
55(autoload 'holiday-julian "cal-julian" 55(eval-and-compile
56 "Holiday on MONTH, DAY (Julian) called STRING." 56 (load "hol-loaddefs" nil 'quiet))
57 t)
58
59(autoload 'holiday-hebrew "cal-hebrew"
60 "Holiday on MONTH, DAY (Hebrew) called STRING."
61 t)
62
63(autoload 'holiday-rosh-hashanah-etc "cal-hebrew"
64 "List of dates related to Rosh Hashanah, as visible in calendar window."
65 t)
66
67(autoload 'holiday-hanukkah "cal-hebrew"
68 "List of dates related to Hanukkah, as visible in calendar window."
69 t)
70
71(autoload 'holiday-passover-etc "cal-hebrew"
72 "List of dates related to Passover, as visible in calendar window."
73 t)
74
75(autoload 'holiday-tisha-b-av-etc "cal-hebrew"
76 "List of dates around Tisha B'Av, as visible in calendar window."
77 t)
78
79(autoload 'holiday-islamic "cal-islam"
80 "Holiday on MONTH, DAY (Islamic) called STRING."
81 t)
82
83(autoload 'holiday-bahai "cal-bahai"
84 "Holiday on MONTH, DAY (Baha'i) called STRING."
85 t)
86
87(autoload 'holiday-chinese-new-year "cal-china"
88 "Date of Chinese New Year."
89 t)
90
91(autoload 'solar-equinoxes-solstices "solar"
92 "Date and time of equinoxes and solstices, if visible in the calendar window.
93Requires floating point."
94 t)
95 57
96;;;###autoload 58;;;###autoload
97(defun holidays (&optional arg) 59(defun holidays (&optional arg)
@@ -210,6 +172,7 @@ The optional LABEL is used to label the buffer created."
210;;;###autoload 172;;;###autoload
211(defalias 'holiday-list 'list-holidays) 173(defalias 'holiday-list 'list-holidays)
212 174
175;;;###diary-autoload
213(defun calendar-check-holidays (date) 176(defun calendar-check-holidays (date)
214 "Check the list of holidays for any that occur on DATE. 177 "Check the list of holidays for any that occur on DATE.
215The value returned is a list of strings of relevant holiday descriptions. 178The value returned is a list of strings of relevant holiday descriptions.
@@ -222,6 +185,7 @@ The holidays are those in the list `calendar-holidays'."
222 (setq holiday-list (append holiday-list (cdr h))))) 185 (setq holiday-list (append holiday-list (cdr h)))))
223 holiday-list)) 186 holiday-list))
224 187
188;;;###cal-autoload
225(defun calendar-cursor-holidays () 189(defun calendar-cursor-holidays ()
226 "Find holidays for the date specified by the cursor in the calendar window." 190 "Find holidays for the date specified by the cursor in the calendar window."
227 (interactive) 191 (interactive)
@@ -246,6 +210,7 @@ The holidays are those in the list `calendar-holidays'."
246 (display-buffer holiday-buffer) 210 (display-buffer holiday-buffer)
247 (message "Checking holidays...done"))))) 211 (message "Checking holidays...done")))))
248 212
213;;;###cal-autoload
249(defun calendar-mark-holidays () 214(defun calendar-mark-holidays ()
250 "Mark notable days in the calendar window." 215 "Mark notable days in the calendar window."
251 (interactive) 216 (interactive)
@@ -256,6 +221,7 @@ The holidays are those in the list `calendar-holidays'."
256 (car holiday) calendar-holiday-marker)) 221 (car holiday) calendar-holiday-marker))
257 (message "Marking holidays...done")) 222 (message "Marking holidays...done"))
258 223
224;;;###cal-autoload
259(defun calendar-list-holidays () 225(defun calendar-list-holidays ()
260 "Create a buffer containing the holidays for the current calendar window. 226 "Create a buffer containing the holidays for the current calendar window.
261The holidays are those in the list `calendar-notable-days'. Returns t if any 227The holidays are those in the list `calendar-notable-days'. Returns t if any
@@ -294,10 +260,11 @@ holidays are found, nil if not."
294 (message "Looking up holidays...done") 260 (message "Looking up holidays...done")
295 t))) 261 t)))
296 262
263;;;###diary-autoload
297(defun calendar-holiday-list () 264(defun calendar-holiday-list ()
298 "Form the list of holidays that occur on dates in the calendar window. 265 "Form the list of holidays that occur on dates in the calendar window.
299The holidays are those in the list `calendar-holidays'." 266The holidays are those in the list `calendar-holidays'."
300 (let ((holiday-list ())) 267 (let (holiday-list)
301 (dolist (p calendar-holidays) 268 (dolist (p calendar-holidays)
302 (let* ((holidays 269 (let* ((holidays
303 (if calendar-debug-sexp 270 (if calendar-debug-sexp