aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-13 05:41:58 +0000
committerGlenn Morris2008-03-13 05:41:58 +0000
commit28b3c0f557dcb884bd7632ebe1d7955b9220af91 (patch)
treed5c4941f103ff950f122b7718dff10bc61dc2c84
parent1d0c7fdfd5b83efff68b171203893de85b0f69ac (diff)
downloademacs-28b3c0f557dcb884bd7632ebe1d7955b9220af91.tar.gz
emacs-28b3c0f557dcb884bd7632ebe1d7955b9220af91.zip
Add calendar-specific autoload cookies.
-rw-r--r--lisp/calendar/cal-hebrew.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el
index 06803fcea80..1e68cc6b7d2 100644
--- a/lisp/calendar/cal-hebrew.el
+++ b/lisp/calendar/cal-hebrew.el
@@ -166,6 +166,7 @@ Gregorian date Sunday, December 31, 1 BC."
166 "Heshvan" "Kislev" "Teveth" "Shevat" "Adar I" "Adar II"] 166 "Heshvan" "Kislev" "Teveth" "Shevat" "Adar I" "Adar II"]
167"Array of strings giving the names of the Hebrew months in a leap year.") 167"Array of strings giving the names of the Hebrew months in a leap year.")
168 168
169;;;###cal-autoload
169(defun calendar-hebrew-date-string (&optional date) 170(defun calendar-hebrew-date-string (&optional date)
170 "String of Hebrew date before sunset of Gregorian DATE. 171 "String of Hebrew date before sunset of Gregorian DATE.
171Defaults to today's date if DATE is not given. 172Defaults to today's date if DATE is not given.
@@ -179,6 +180,7 @@ Driven by the variable `calendar-date-display-form'."
179 calendar-hebrew-month-name-array-common-year))) 180 calendar-hebrew-month-name-array-common-year)))
180 (calendar-date-string hebrew-date nil t))) 181 (calendar-date-string hebrew-date nil t)))
181 182
183;;;###cal-autoload
182(defun calendar-print-hebrew-date () 184(defun calendar-print-hebrew-date ()
183 "Show the Hebrew calendar equivalent of the date under the cursor." 185 "Show the Hebrew calendar equivalent of the date under the cursor."
184 (interactive) 186 (interactive)
@@ -218,6 +220,7 @@ Driven by the variable `calendar-date-display-form'."
218 (t (calendar-absolute-from-hebrew 220 (t (calendar-absolute-from-hebrew
219 (list death-month death-day year)))))) 221 (list death-month death-day year))))))
220 222
223;;;###cal-autoload
221(defun calendar-goto-hebrew-date (date &optional noecho) 224(defun calendar-goto-hebrew-date (date &optional noecho)
222 "Move cursor to Hebrew DATE; echo Hebrew date unless NOECHO is t." 225 "Move cursor to Hebrew DATE; echo Hebrew date unless NOECHO is t."
223 (interactive 226 (interactive
@@ -264,6 +267,7 @@ Driven by the variable `calendar-date-display-form'."
264 (calendar-absolute-from-hebrew date))) 267 (calendar-absolute-from-hebrew date)))
265 (or noecho (calendar-print-hebrew-date))) 268 (or noecho (calendar-print-hebrew-date)))
266 269
270;;;###holiday-autoload
267(defun holiday-hebrew (month day string) 271(defun holiday-hebrew (month day string)
268 "Holiday on MONTH, DAY (Hebrew) called STRING. 272 "Holiday on MONTH, DAY (Hebrew) called STRING.
269If MONTH, DAY (Hebrew) is visible, the value returned is corresponding 273If MONTH, DAY (Hebrew) is visible, the value returned is corresponding
@@ -302,6 +306,7 @@ nil if it is not visible in the current calendar window."
302;; h-r-h-e should be called from holidays code. 306;; h-r-h-e should be called from holidays code.
303(declare-function holiday-filter-visible-calendar "holidays" (l)) 307(declare-function holiday-filter-visible-calendar "holidays" (l))
304 308
309;;;###holiday-autoload
305(defun holiday-rosh-hashanah-etc () 310(defun holiday-rosh-hashanah-etc ()
306 "List of dates related to Rosh Hashanah, as visible in calendar window." 311 "List of dates related to Rosh Hashanah, as visible in calendar window."
307 (if (or (< displayed-month 8) 312 (if (or (< displayed-month 8)
@@ -361,6 +366,7 @@ nil if it is not visible in the current calendar window."
361 output-list))) 366 output-list)))
362 output-list))) 367 output-list)))
363 368
369;;;###holiday-autoload
364(defun holiday-hanukkah () 370(defun holiday-hanukkah ()
365 "List of dates related to Hanukkah, as visible in calendar window." 371 "List of dates related to Hanukkah, as visible in calendar window."
366 ;; This test is only to speed things up a bit, it works fine without it. 372 ;; This test is only to speed things up a bit, it works fine without it.
@@ -395,6 +401,7 @@ nil if it is not visible in the current calendar window."
395 (list (calendar-gregorian-from-absolute (+ abs-h 7)) 401 (list (calendar-gregorian-from-absolute (+ abs-h 7))
396 "Hanukkah (eighth day)"))))))) 402 "Hanukkah (eighth day)")))))))
397 403
404;;;###holiday-autoload
398(defun holiday-passover-etc () 405(defun holiday-passover-etc ()
399 "List of dates related to Passover, as visible in calendar window." 406 "List of dates related to Passover, as visible in calendar window."
400 (if (< 7 displayed-month) 407 (if (< 7 displayed-month)
@@ -479,6 +486,7 @@ nil if it is not visible in the current calendar window."
479 output-list))) 486 output-list)))
480 output-list))) 487 output-list)))
481 488
489;;;###holiday-autoload
482(defun holiday-tisha-b-av-etc () 490(defun holiday-tisha-b-av-etc ()
483 "List of dates around Tisha B'Av, as visible in calendar window." 491 "List of dates around Tisha B'Av, as visible in calendar window."
484 (if (or (< displayed-month 5) 492 (if (or (< displayed-month 5)
@@ -508,6 +516,7 @@ nil if it is not visible in the current calendar window."
508 516
509(defvar number) ; from diary-list-entries 517(defvar number) ; from diary-list-entries
510 518
519;;;###diary-autoload
511(defun list-hebrew-diary-entries () 520(defun list-hebrew-diary-entries ()
512 "Add any Hebrew date entries from the diary file to `diary-entries-list'. 521 "Add any Hebrew date entries from the diary file to `diary-entries-list'.
513Hebrew date diary entries must be prefaced by `hebrew-diary-entry-symbol' 522Hebrew date diary entries must be prefaced by `hebrew-diary-entry-symbol'
@@ -595,6 +604,7 @@ not be marked in the calendar. This function is provided for use with the
595 (set-buffer-modified-p diary-modified)) 604 (set-buffer-modified-p diary-modified))
596 (goto-char (point-min)))) 605 (goto-char (point-min))))
597 606
607;;;###diary-autoload
598(defun mark-hebrew-calendar-date-pattern (month day year) 608(defun mark-hebrew-calendar-date-pattern (month day year)
599 "Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR. 609 "Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR.
600A value of 0 in any position is a wildcard." 610A value of 0 in any position is a wildcard."
@@ -677,6 +687,7 @@ A value of 0 in any position is a wildcard."
677(declare-function mark-calendar-days-named "diary-lib" 687(declare-function mark-calendar-days-named "diary-lib"
678 (dayname &optional color)) 688 (dayname &optional color))
679 689
690;;;###diary-autoload
680(defun mark-hebrew-diary-entries () 691(defun mark-hebrew-diary-entries ()
681 "Mark days in the calendar window that have Hebrew date diary entries. 692 "Mark days in the calendar window that have Hebrew date diary entries.
682Each entry in `diary-file' (or included files) visible in the calendar window 693Each entry in `diary-file' (or included files) visible in the calendar window
@@ -784,6 +795,7 @@ is provided for use as part of `nongregorian-diary-marking-hook'."
784 (mark-hebrew-calendar-date-pattern mm dd yy))))) 795 (mark-hebrew-calendar-date-pattern mm dd yy)))))
785 (setq d (cdr d))))) 796 (setq d (cdr d)))))
786 797
798;;;###cal-autoload
787(defun insert-hebrew-diary-entry (arg) 799(defun insert-hebrew-diary-entry (arg)
788 "Insert a diary entry. 800 "Insert a diary entry.
789For the Hebrew date corresponding to the date indicated by point. 801For the Hebrew date corresponding to the date indicated by point.
@@ -801,6 +813,7 @@ Prefix argument ARG makes the entry nonmarking."
801 nil t)) 813 nil t))
802 arg))) 814 arg)))
803 815
816;;;###cal-autoload
804(defun insert-monthly-hebrew-diary-entry (arg) 817(defun insert-monthly-hebrew-diary-entry (arg)
805 "Insert a monthly diary entry. 818 "Insert a monthly diary entry.
806For the day of the Hebrew month corresponding to the date indicated by point. 819For the day of the Hebrew month corresponding to the date indicated by point.
@@ -819,6 +832,7 @@ Prefix argument ARG makes the entry nonmarking."
819 (calendar-cursor-to-date t))))) 832 (calendar-cursor-to-date t)))))
820 arg))) 833 arg)))
821 834
835;;;###cal-autoload
822(defun insert-yearly-hebrew-diary-entry (arg) 836(defun insert-yearly-hebrew-diary-entry (arg)
823 "Insert an annual diary entry. 837 "Insert an annual diary entry.
824For the day of the Hebrew year corresponding to the date indicated by point. 838For the day of the Hebrew year corresponding to the date indicated by point.
@@ -912,10 +926,13 @@ from the cursor position."
912 926
913(defvar date) 927(defvar date)
914 928
929;; To be called from list-sexp-diary-entries, where DATE is bound.
930;;;###diary-autoload
915(defun diary-hebrew-date () 931(defun diary-hebrew-date ()
916 "Hebrew calendar equivalent of date diary entry." 932 "Hebrew calendar equivalent of date diary entry."
917 (format "Hebrew date (until sunset): %s" (calendar-hebrew-date-string date))) 933 (format "Hebrew date (until sunset): %s" (calendar-hebrew-date-string date)))
918 934
935;;;###diary-autoload
919(defun diary-omer (&optional mark) 936(defun diary-omer (&optional mark)
920 "Omer count diary entry. 937 "Omer count diary entry.
921Entry applies if date is within 50 days after Passover. 938Entry applies if date is within 50 days after Passover.
@@ -944,6 +961,7 @@ use when highlighting the day in the calendar."
944 961
945(defvar entry) 962(defvar entry)
946 963
964;;;###diary-autoload
947(defun diary-yahrzeit (death-month death-day death-year &optional mark) 965(defun diary-yahrzeit (death-month death-day death-year &optional mark)
948 "Yahrzeit diary entry--entry applies if date is Yahrzeit or the day before. 966 "Yahrzeit diary entry--entry applies if date is Yahrzeit or the day before.
949Parameters are DEATH-MONTH, DEATH-DAY, DEATH-YEAR; the diary entry is assumed 967Parameters are DEATH-MONTH, DEATH-DAY, DEATH-YEAR; the diary entry is assumed
@@ -977,6 +995,7 @@ use when highlighting the day in the calendar."
977 ((= (% diff 10) 3) "rd") 995 ((= (% diff 10) 3) "rd")
978 (t "th"))))))) 996 (t "th")))))))
979 997
998;;;###diary-autoload
980(defun diary-rosh-hodesh (&optional mark) 999(defun diary-rosh-hodesh (&optional mark)
981 "Rosh Hodesh diary entry. 1000 "Rosh Hodesh diary entry.
982Entry applies if date is Rosh Hodesh, the day before, or the Saturday before. 1001Entry applies if date is Rosh Hodesh, the day before, or the Saturday before.
@@ -1058,6 +1077,7 @@ use when highlighting the day in the calendar."
1058 (aref hebrew-calendar-parashiot-names (aref p 1))) 1077 (aref hebrew-calendar-parashiot-names (aref p 1)))
1059 (aref hebrew-calendar-parashiot-names p))) 1078 (aref hebrew-calendar-parashiot-names p)))
1060 1079
1080;;;###diary-autoload
1061(defun diary-parasha (&optional mark) 1081(defun diary-parasha (&optional mark)
1062 "Parasha diary entry--entry applies if date is a Saturday. 1082 "Parasha diary entry--entry applies if date is a Saturday.
1063An optional parameter MARK specifies a face or single-character string to 1083An optional parameter MARK specifies a face or single-character string to