diff options
| author | Gerd Moellmann | 2001-03-26 13:33:23 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-03-26 13:33:23 +0000 |
| commit | b0e6051ab325d318f1578d6e1fd1a234277286d3 (patch) | |
| tree | 4636ac042be4e00fb253d0263b95a64abeaa9923 | |
| parent | e6b13c749ad3bd060553ea4865cd95d2f503f7c8 (diff) | |
| download | emacs-b0e6051ab325d318f1578d6e1fd1a234277286d3.tar.gz emacs-b0e6051ab325d318f1578d6e1fd1a234277286d3.zip | |
Undo changes made by John Wiegley in previous revision.
| -rw-r--r-- | lisp/calendar/cal-menu.el | 21 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 205 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 16 | ||||
| -rw-r--r-- | lisp/calendar/holidays.el | 5 |
4 files changed, 48 insertions, 199 deletions
diff --git a/lisp/calendar/cal-menu.el b/lisp/calendar/cal-menu.el index 51cdb157ad5..7c7056db7e7 100644 --- a/lisp/calendar/cal-menu.el +++ b/lisp/calendar/cal-menu.el | |||
| @@ -63,8 +63,6 @@ | |||
| 63 | '("Insert Hebrew" . calendar-mouse-insert-hebrew-diary-entry)) | 63 | '("Insert Hebrew" . calendar-mouse-insert-hebrew-diary-entry)) |
| 64 | (define-key calendar-mode-map [menu-bar diary isl] | 64 | (define-key calendar-mode-map [menu-bar diary isl] |
| 65 | '("Insert Islamic" . calendar-mouse-insert-islamic-diary-entry)) | 65 | '("Insert Islamic" . calendar-mouse-insert-islamic-diary-entry)) |
| 66 | (define-key calendar-mode-map [menu-bar diary baha] | ||
| 67 | '("Insert Baha'i" . calendar-mouse-insert-bahai-diary-entry)) | ||
| 68 | (define-key calendar-mode-map [menu-bar diary cyc] | 66 | (define-key calendar-mode-map [menu-bar diary cyc] |
| 69 | '("Insert Cyclic" . insert-cyclic-diary-entry)) | 67 | '("Insert Cyclic" . insert-cyclic-diary-entry)) |
| 70 | (define-key calendar-mode-map [menu-bar diary blk] | 68 | (define-key calendar-mode-map [menu-bar diary blk] |
| @@ -109,8 +107,6 @@ | |||
| 109 | (define-key calendar-mode-map [menu-bar goto islamic] | 107 | (define-key calendar-mode-map [menu-bar goto islamic] |
| 110 | '("Islamic Date" . calendar-goto-islamic-date)) | 108 | '("Islamic Date" . calendar-goto-islamic-date)) |
| 111 | (define-key calendar-mode-map [menu-bar goto persian] | 109 | (define-key calendar-mode-map [menu-bar goto persian] |
| 112 | '("Baha'i Date" . calendar-goto-bahai-date)) | ||
| 113 | (define-key calendar-mode-map [menu-bar goto persian] | ||
| 114 | '("Persian Date" . calendar-goto-persian-date)) | 110 | '("Persian Date" . calendar-goto-persian-date)) |
| 115 | (define-key calendar-mode-map [menu-bar goto hebrew] | 111 | (define-key calendar-mode-map [menu-bar goto hebrew] |
| 116 | '("Hebrew Date" . calendar-goto-hebrew-date)) | 112 | '("Hebrew Date" . calendar-goto-hebrew-date)) |
| @@ -270,19 +266,6 @@ ERROR is t, otherwise just returns nil." | |||
| 270 | '("Yearly" . insert-yearly-islamic-diary-entry)))))) | 266 | '("Yearly" . insert-yearly-islamic-diary-entry)))))) |
| 271 | (and islamic-selection (call-interactively islamic-selection)))) | 267 | (and islamic-selection (call-interactively islamic-selection)))) |
| 272 | 268 | ||
| 273 | (defun calendar-mouse-insert-bahai-diary-entry (event) | ||
| 274 | "Pop up menu to insert an Baha'i-date diary entry." | ||
| 275 | (interactive "e") | ||
| 276 | (let ((bahai-selection | ||
| 277 | (x-popup-menu | ||
| 278 | event | ||
| 279 | (list "Baha'i insert menu" | ||
| 280 | (list (calendar-bahai-date-string (calendar-cursor-to-date)) | ||
| 281 | '("One time" . insert-bahai-diary-entry) | ||
| 282 | '("Monthly" . insert-monthly-bahai-diary-entry) | ||
| 283 | '("Yearly" . insert-yearly-bahai-diary-entry)))))) | ||
| 284 | (and bahai-selection (call-interactively bahai-selection)))) | ||
| 285 | |||
| 286 | (defun calendar-mouse-sunrise/sunset () | 269 | (defun calendar-mouse-sunrise/sunset () |
| 287 | "Show sunrise/sunset times for mouse-selected date." | 270 | "Show sunrise/sunset times for mouse-selected date." |
| 288 | (interactive) | 271 | (interactive) |
| @@ -491,9 +474,7 @@ The output is in landscape format, one month to a page." | |||
| 491 | (list (format "Hebrew date (before sunset): %s" | 474 | (list (format "Hebrew date (before sunset): %s" |
| 492 | (calendar-hebrew-date-string date))) | 475 | (calendar-hebrew-date-string date))) |
| 493 | (list (format "Persian date: %s" | 476 | (list (format "Persian date: %s" |
| 494 | (calendar-persian-date-string date))) | 477 | (calendar-persian-date-string date)))) |
| 495 | (list (format "Baha'i date (before sunset): %s" | ||
| 496 | (calendar-bahai-date-string date)))) | ||
| 497 | (let ((i (calendar-islamic-date-string date))) | 478 | (let ((i (calendar-islamic-date-string date))) |
| 498 | (if (not (string-equal i "")) | 479 | (if (not (string-equal i "")) |
| 499 | (list (list (format "Islamic date (before sunset): %s" i))))) | 480 | (list (list (format "Islamic date (before sunset): %s" i))))) |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 253ae38001f..224e9376411 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -26,29 +26,26 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Commentary: | 27 | ;;; Commentary: |
| 28 | 28 | ||
| 29 | ;; This collection of functions implements a calendar window. It | 29 | ;; This collection of functions implements a calendar window. It generates a |
| 30 | ;; generates a calendar for the current month, together with the | 30 | ;; calendar for the current month, together with the previous and coming |
| 31 | ;; previous and coming months, or for any other three-month period. | 31 | ;; months, or for any other three-month period. The calendar can be scrolled |
| 32 | ;; The calendar can be scrolled forward and backward in the window to | 32 | ;; forward and backward in the window to show months in the past or future; |
| 33 | ;; show months in the past or future; the cursor can move forward and | 33 | ;; the cursor can move forward and backward by days, weeks, or months, making |
| 34 | ;; backward by days, weeks, or months, making it possible, for | 34 | ;; it possible, for instance, to jump to the date a specified number of days, |
| 35 | ;; instance, to jump to the date a specified number of days, weeks, or | 35 | ;; weeks, or months from the date under the cursor. The user can display a |
| 36 | ;; months from the date under the cursor. The user can display a list | 36 | ;; list of holidays and other notable days for the period shown; the notable |
| 37 | ;; of holidays and other notable days for the period shown; the | 37 | ;; days can be marked on the calendar, if desired. The user can also specify |
| 38 | ;; notable days can be marked on the calendar, if desired. The user | 38 | ;; that dates having corresponding diary entries (in a file that the user |
| 39 | ;; can also specify that dates having corresponding diary entries (in | 39 | ;; specifies) be marked; the diary entries for any date can be viewed in a |
| 40 | ;; a file that the user specifies) be marked; the diary entries for | 40 | ;; separate window. The diary and the notable days can be viewed |
| 41 | ;; any date can be viewed in a separate window. The diary and the | 41 | ;; independently of the calendar. Dates can be translated from the (usual) |
| 42 | ;; notable days can be viewed independently of the calendar. Dates | 42 | ;; Gregorian calendar to the day of the year/days remaining in year, to the |
| 43 | ;; can be translated from the (usual) Gregorian calendar to the day of | 43 | ;; ISO commercial calendar, to the Julian (old style) calendar, to the Hebrew |
| 44 | ;; the year/days remaining in year, to the ISO commercial calendar, to | 44 | ;; calendar, to the Islamic calendar, to the French Revolutionary calendar, to |
| 45 | ;; the Julian (old style) calendar, to the Hebrew calendar, to the | 45 | ;; the Mayan calendar, to the Chinese calendar, to the Coptic calendar, to the |
| 46 | ;; Islamic calendar, to the Baha'i calendar, to the French | 46 | ;; Ethiopic calendar, and to the astronomical (Julian) day number. When |
| 47 | ;; Revolutionary calendar, to the Mayan calendar, to the Chinese | 47 | ;; floating point is available, times of sunrise/sunset can be displayed, as |
| 48 | ;; calendar, to the Coptic calendar, to the Ethiopic calendar, and to | 48 | ;; can the phases of the moon. Appointment notification for diary entries is |
| 49 | ;; the astronomical (Julian) day number. When floating point is | ||
| 50 | ;; available, times of sunrise/sunset can be displayed, as can the | ||
| 51 | ;; phases of the moon. Appointment notification for diary entries is | ||
| 52 | ;; available. Calendar printing via LaTeX is available. | 49 | ;; available. Calendar printing via LaTeX is available. |
| 53 | 50 | ||
| 54 | ;; The following files are part of the calendar/diary code: | 51 | ;; The following files are part of the calendar/diary code: |
| @@ -59,7 +56,6 @@ | |||
| 59 | ;; cal-dst.el Daylight savings time rules | 56 | ;; cal-dst.el Daylight savings time rules |
| 60 | ;; cal-hebrew.el Hebrew calendar | 57 | ;; cal-hebrew.el Hebrew calendar |
| 61 | ;; cal-islam.el Islamic calendar | 58 | ;; cal-islam.el Islamic calendar |
| 62 | ;; cal-bahai.el Baha'i calendar | ||
| 63 | ;; cal-iso.el ISO calendar | 59 | ;; cal-iso.el ISO calendar |
| 64 | ;; cal-julian.el Julian/astronomical calendars | 60 | ;; cal-julian.el Julian/astronomical calendars |
| 65 | ;; cal-mayan.el Mayan calendars | 61 | ;; cal-mayan.el Mayan calendars |
| @@ -310,16 +306,6 @@ calendar." | |||
| 310 | :group 'holidays) | 306 | :group 'holidays) |
| 311 | 307 | ||
| 312 | ;;;###autoload | 308 | ;;;###autoload |
| 313 | (defcustom all-bahai-calendar-holidays nil | ||
| 314 | "*If nil, show only major holidays from the Baha'i calendar. | ||
| 315 | These are the days on which work and school must be suspended. | ||
| 316 | |||
| 317 | If t, show all the holidays that would appear in a complete Baha'i | ||
| 318 | calendar." | ||
| 319 | :type 'boolean | ||
| 320 | :group 'holidays) | ||
| 321 | |||
| 322 | ;;;###autoload | ||
| 323 | (defcustom calendar-load-hook nil | 309 | (defcustom calendar-load-hook nil |
| 324 | "*List of functions to be called after the calendar is first loaded. | 310 | "*List of functions to be called after the calendar is first loaded. |
| 325 | This is the place to add key bindings to `calendar-mode-map'." | 311 | This is the place to add key bindings to `calendar-mode-map'." |
| @@ -460,23 +446,21 @@ Diary entries can be based on Lisp sexps. For example, the diary entry | |||
| 460 | 446 | ||
| 461 | %%(diary-block 11 1 1990 11 10 1990) Vacation | 447 | %%(diary-block 11 1 1990 11 10 1990) Vacation |
| 462 | 448 | ||
| 463 | causes the diary entry \"Vacation\" to appear from November 1 through | 449 | causes the diary entry \"Vacation\" to appear from November 1 through November |
| 464 | November 10, 1990. Other functions available are `diary-float', | 450 | 10, 1990. Other functions available are `diary-float', `diary-anniversary', |
| 465 | `diary-anniversary', `diary-cyclic', `diary-day-of-year', | 451 | `diary-cyclic', `diary-day-of-year', `diary-iso-date', `diary-french-date', |
| 466 | `diary-iso-date', `diary-french-date', `diary-hebrew-date', | 452 | `diary-hebrew-date', `diary-islamic-date', `diary-mayan-date', |
| 467 | `diary-islamic-date', `diary-bahai-date', `diary-mayan-date', | ||
| 468 | `diary-chinese-date', `diary-coptic-date', `diary-ethiopic-date', | 453 | `diary-chinese-date', `diary-coptic-date', `diary-ethiopic-date', |
| 469 | `diary-persian-date', `diary-yahrzeit', `diary-sunrise-sunset', | 454 | `diary-persian-date', `diary-yahrzeit', `diary-sunrise-sunset', |
| 470 | `diary-phases-of-moon', `diary-parasha', `diary-omer', | 455 | `diary-phases-of-moon', `diary-parasha', `diary-omer', `diary-rosh-hodesh', |
| 471 | `diary-rosh-hodesh', and `diary-sabbath-candles'. See the | 456 | and `diary-sabbath-candles'. See the documentation for the function |
| 472 | documentation for the function `list-sexp-diary-entries' for more | 457 | `list-sexp-diary-entries' for more details. |
| 473 | details. | ||
| 474 | 458 | ||
| 475 | Diary entries based on the Hebrew, the Islamic and/or the Baha'i | 459 | Diary entries based on the Hebrew and/or the Islamic calendar are also |
| 476 | calendar are also possible, but because these are somewhat slow, they | 460 | possible, but because these are somewhat slow, they are ignored |
| 477 | are ignored unless you set the `nongregorian-diary-listing-hook' and | 461 | unless you set the `nongregorian-diary-listing-hook' and the |
| 478 | the `nongregorian-diary-marking-hook' appropriately. See the | 462 | `nongregorian-diary-marking-hook' appropriately. See the documentation |
| 479 | documentation for these functions for details. | 463 | for these functions for details. |
| 480 | 464 | ||
| 481 | Diary files can contain directives to include the contents of other files; for | 465 | Diary files can contain directives to include the contents of other files; for |
| 482 | details, see the documentation for the variable `list-diary-entries-hook'." | 466 | details, see the documentation for the variable `list-diary-entries-hook'." |
| @@ -502,12 +486,6 @@ details, see the documentation for the variable `list-diary-entries-hook'." | |||
| 502 | :group 'diary) | 486 | :group 'diary) |
| 503 | 487 | ||
| 504 | ;;;###autoload | 488 | ;;;###autoload |
| 505 | (defcustom bahai-diary-entry-symbol "B" | ||
| 506 | "*Symbol indicating a diary entry according to the Baha'i calendar." | ||
| 507 | :type 'string | ||
| 508 | :group 'diary) | ||
| 509 | |||
| 510 | ;;;###autoload | ||
| 511 | (defcustom diary-include-string "#include" | 489 | (defcustom diary-include-string "#include" |
| 512 | "*The string indicating inclusion of another file of diary entries. | 490 | "*The string indicating inclusion of another file of diary entries. |
| 513 | See the documentation for the function `include-other-diary-files'." | 491 | See the documentation for the function `include-other-diary-files'." |
| @@ -524,9 +502,8 @@ See the documentation for the function `list-sexp-diary-entries'." | |||
| 524 | ;;;###autoload | 502 | ;;;###autoload |
| 525 | (defcustom abbreviated-calendar-year t | 503 | (defcustom abbreviated-calendar-year t |
| 526 | "*Interpret a two-digit year DD in a diary entry as either 19DD or 20DD. | 504 | "*Interpret a two-digit year DD in a diary entry as either 19DD or 20DD. |
| 527 | For the Gregorian calendar; similarly for the Hebrew, Islamic and | 505 | For the Gregorian calendar; similarly for the Hebrew and Islamic calendars. |
| 528 | Baha'i calendars. If this variable is nil, years must be written in | 506 | If this variable is nil, years must be written in full." |
| 529 | full." | ||
| 530 | :type 'boolean | 507 | :type 'boolean |
| 531 | :group 'diary) | 508 | :group 'diary) |
| 532 | 509 | ||
| @@ -758,15 +735,11 @@ diary buffer, set the variable `diary-list-include-blanks' to t." | |||
| 758 | ;;;###autoload | 735 | ;;;###autoload |
| 759 | (defcustom nongregorian-diary-listing-hook nil | 736 | (defcustom nongregorian-diary-listing-hook nil |
| 760 | "*List of functions called for listing diary file and included files. | 737 | "*List of functions called for listing diary file and included files. |
| 761 | As the files are processed for diary entries, these functions are used | 738 | As the files are processed for diary entries, these functions are used to cull |
| 762 | to cull relevant entries. You can use either or both of | 739 | relevant entries. You can use either or both of `list-hebrew-diary-entries' |
| 763 | `list-hebrew-diary-entries', `list-islamic-diary-entries' and | 740 | and `list-islamic-diary-entries'. The documentation for these functions |
| 764 | `list-bahai-diary-entries'. The documentation for these functions | ||
| 765 | describes the style of such diary entries." | 741 | describes the style of such diary entries." |
| 766 | :type 'hook | 742 | :type 'hook |
| 767 | :options '(list-hebrew-diary-entries | ||
| 768 | list-islamic-diary-entries | ||
| 769 | list-bahai-diary-entries) | ||
| 770 | :group 'diary) | 743 | :group 'diary) |
| 771 | 744 | ||
| 772 | ;;;###autoload | 745 | ;;;###autoload |
| @@ -789,15 +762,11 @@ function `include-other-diary-files' as part of `list-diary-entries-hook'." | |||
| 789 | ;;;###autoload | 762 | ;;;###autoload |
| 790 | (defcustom nongregorian-diary-marking-hook nil | 763 | (defcustom nongregorian-diary-marking-hook nil |
| 791 | "*List of functions called for marking diary file and included files. | 764 | "*List of functions called for marking diary file and included files. |
| 792 | As the files are processed for diary entries, these functions are used | 765 | As the files are processed for diary entries, these functions are used to cull |
| 793 | to cull relevant entries. You can use either or both of | 766 | relevant entries. You can use either or both of `mark-hebrew-diary-entries' |
| 794 | `mark-hebrew-diary-entries', `mark-islamic-diary-entries' and | 767 | and `mark-islamic-diary-entries'. The documentation for these functions |
| 795 | `mark-bahai-diary-entries'. The documentation for these functions | ||
| 796 | describes the style of such diary entries." | 768 | describes the style of such diary entries." |
| 797 | :type 'hook | 769 | :type 'hook |
| 798 | :options '(mark-hebrew-diary-entries | ||
| 799 | mark-islamic-diary-entries | ||
| 800 | mark-bahai-diary-entries) | ||
| 801 | :group 'diary) | 770 | :group 'diary) |
| 802 | 771 | ||
| 803 | ;;;###autoload | 772 | ;;;###autoload |
| @@ -1035,48 +1004,6 @@ See the documentation for `calendar-holidays' for details." | |||
| 1035 | :group 'holidays) | 1004 | :group 'holidays) |
| 1036 | 1005 | ||
| 1037 | ;;;###autoload | 1006 | ;;;###autoload |
| 1038 | (put 'bahai-holidays 'risky-local-variable t) | ||
| 1039 | ;;;###autoload | ||
| 1040 | (defcustom bahai-holidays | ||
| 1041 | '((holiday-fixed | ||
| 1042 | 3 21 | ||
| 1043 | (format "Baha'i New Year (Naw-Ruz) %d" (- displayed-year (1- 1844)))) | ||
| 1044 | (holiday-fixed 4 21 "First Day of Ridvan") | ||
| 1045 | (if all-bahai-calendar-holidays | ||
| 1046 | (holiday-fixed 4 22 "Second Day of Ridvan")) | ||
| 1047 | (if all-bahai-calendar-holidays | ||
| 1048 | (holiday-fixed 4 23 "Third Day of Ridvan")) | ||
| 1049 | (if all-bahai-calendar-holidays | ||
| 1050 | (holiday-fixed 4 24 "Fourth Day of Ridvan")) | ||
| 1051 | (if all-bahai-calendar-holidays | ||
| 1052 | (holiday-fixed 4 25 "Fifth Day of Ridvan")) | ||
| 1053 | (if all-bahai-calendar-holidays | ||
| 1054 | (holiday-fixed 4 26 "Sixth Day of Ridvan")) | ||
| 1055 | (if all-bahai-calendar-holidays | ||
| 1056 | (holiday-fixed 4 27 "Seventh Day of Ridvan")) | ||
| 1057 | (if all-bahai-calendar-holidays | ||
| 1058 | (holiday-fixed 4 28 "Eighth Day of Ridvan")) | ||
| 1059 | (holiday-fixed 4 29 "Ninth Day of Ridvan") | ||
| 1060 | (if all-bahai-calendar-holidays | ||
| 1061 | (holiday-fixed 4 30 "Tenth Day of Ridvan")) | ||
| 1062 | (if all-bahai-calendar-holidays | ||
| 1063 | (holiday-fixed 5 1 "Eleventh Day of Ridvan")) | ||
| 1064 | (holiday-fixed 5 2 "Twelfth Day of Ridvan") | ||
| 1065 | (holiday-fixed 5 23 "Declaration of the Bab") | ||
| 1066 | (holiday-fixed 5 29 "Ascension of Baha'u'llah") | ||
| 1067 | (holiday-fixed 7 9 "Martyrdom of the Bab") | ||
| 1068 | (holiday-fixed 10 20 "Birth of the Bab") | ||
| 1069 | (holiday-fixed 11 12 "Birth of Baha'u'llah") | ||
| 1070 | (if all-bahai-calendar-holidays | ||
| 1071 | (holiday-fixed 11 26 "Day of the Covenant")) | ||
| 1072 | (if all-bahai-calendar-holidays | ||
| 1073 | (holiday-fixed 11 28 "Ascension of `Abdu'l-Baha"))) | ||
| 1074 | "*Baha'i holidays. | ||
| 1075 | See the documentation for `calendar-holidays' for details." | ||
| 1076 | :type 'sexp | ||
| 1077 | :group 'holidays) | ||
| 1078 | |||
| 1079 | ;;;###autoload | ||
| 1080 | (put 'solar-holidays 'risky-local-variable t) | 1007 | (put 'solar-holidays 'risky-local-variable t) |
| 1081 | ;;;###autoload | 1008 | ;;;###autoload |
| 1082 | (defcustom solar-holidays | 1009 | (defcustom solar-holidays |
| @@ -1113,16 +1040,15 @@ See the documentation for `calendar-holidays' for details." | |||
| 1113 | (defcustom calendar-holidays | 1040 | (defcustom calendar-holidays |
| 1114 | (append general-holidays local-holidays other-holidays | 1041 | (append general-holidays local-holidays other-holidays |
| 1115 | christian-holidays hebrew-holidays islamic-holidays | 1042 | christian-holidays hebrew-holidays islamic-holidays |
| 1116 | bahai-holidays oriental-holidays solar-holidays) | 1043 | oriental-holidays solar-holidays) |
| 1117 | "*List of notable days for the command \\[holidays]. | 1044 | "*List of notable days for the command \\[holidays]. |
| 1118 | 1045 | ||
| 1119 | Additional holidays are easy to add to the list, just put them in the | 1046 | Additional holidays are easy to add to the list, just put them in the list |
| 1120 | list `other-holidays' in your .emacs file. Similarly, by setting any | 1047 | `other-holidays' in your .emacs file. Similarly, by setting any of |
| 1121 | of `general-holidays', `local-holidays' `christian-holidays', | 1048 | `general-holidays', `local-holidays' `christian-holidays', `hebrew-holidays', |
| 1122 | `hebrew-holidays', `islamic-holidays', `bahai-holidays', | 1049 | `islamic-holidays', `oriental-holidays', or `solar-holidays' to nil in your |
| 1123 | `oriental-holidays', or `solar-holidays' to nil in your .emacs file, | 1050 | .emacs file, you can eliminate unwanted categories of holidays. The intention |
| 1124 | you can eliminate unwanted categories of holidays. The intention is | 1051 | is that (in the US) `local-holidays' be set in site-init.el and |
| 1125 | that (in the US) `local-holidays' be set in site-init.el and | ||
| 1126 | `other-holidays' be set by the user. | 1052 | `other-holidays' be set by the user. |
| 1127 | 1053 | ||
| 1128 | Entries on the list are expressions that return (possibly empty) lists of | 1054 | Entries on the list are expressions that return (possibly empty) lists of |
| @@ -1138,7 +1064,6 @@ Several basic functions are provided for this purpose: | |||
| 1138 | DAYNAME after/before MONTH DAY. | 1064 | DAYNAME after/before MONTH DAY. |
| 1139 | (holiday-hebrew MONTH DAY STRING) a fixed date on the Hebrew calendar | 1065 | (holiday-hebrew MONTH DAY STRING) a fixed date on the Hebrew calendar |
| 1140 | (holiday-islamic MONTH DAY STRING) a fixed date on the Islamic calendar | 1066 | (holiday-islamic MONTH DAY STRING) a fixed date on the Islamic calendar |
| 1141 | (holiday-bahai MONTH DAY STRING) a fixed date on the Baha'i calendar | ||
| 1142 | (holiday-julian MONTH DAY STRING) a fixed date on the Julian calendar | 1067 | (holiday-julian MONTH DAY STRING) a fixed date on the Julian calendar |
| 1143 | (holiday-sexp SEXP STRING) SEXP is a Gregorian-date-valued expression | 1068 | (holiday-sexp SEXP STRING) SEXP is a Gregorian-date-valued expression |
| 1144 | in the variable `year'; if it evaluates to | 1069 | in the variable `year'; if it evaluates to |
| @@ -1166,11 +1091,6 @@ add the Islamic feast celebrating Mohammed's birthday use | |||
| 1166 | (holiday-islamic 3 12 \"Mohammed's Birthday\") | 1091 | (holiday-islamic 3 12 \"Mohammed's Birthday\") |
| 1167 | 1092 | ||
| 1168 | since the Islamic months are numbered from 1 starting with Muharram. To | 1093 | since the Islamic months are numbered from 1 starting with Muharram. To |
| 1169 | add an entry for the Baha'i festival of Ridvan, use | ||
| 1170 | |||
| 1171 | (holiday-bahai 2 13 \"Festival of Ridvan\") | ||
| 1172 | |||
| 1173 | since the Baha'i months are numbered from 1 starting with Baha. To | ||
| 1174 | add Thomas Jefferson's birthday, April 2, 1743 (Julian), use | 1094 | add Thomas Jefferson's birthday, April 2, 1743 (Julian), use |
| 1175 | 1095 | ||
| 1176 | (holiday-julian 4 2 \"Jefferson's Birthday\") | 1096 | (holiday-julian 4 2 \"Jefferson's Birthday\") |
| @@ -1650,14 +1570,6 @@ Driven by the variable `calendar-date-display-form'.") | |||
| 1650 | "String of Islamic date of Gregorian date." | 1570 | "String of Islamic date of Gregorian date." |
| 1651 | t) | 1571 | t) |
| 1652 | 1572 | ||
| 1653 | (autoload 'calendar-print-bahai-date "cal-bahai" | ||
| 1654 | "Show the Baha'i date equivalents of date." | ||
| 1655 | t) | ||
| 1656 | |||
| 1657 | (autoload 'calendar-bahai-date-string "cal-bahai" | ||
| 1658 | "String of Baha'i date of Gregorian date." | ||
| 1659 | t) | ||
| 1660 | |||
| 1661 | (autoload 'calendar-goto-hebrew-date "cal-hebrew" | 1573 | (autoload 'calendar-goto-hebrew-date "cal-hebrew" |
| 1662 | "Move cursor to Hebrew date date." | 1574 | "Move cursor to Hebrew date date." |
| 1663 | t) | 1575 | t) |
| @@ -1781,21 +1693,6 @@ to the date indicated by point." | |||
| 1781 | to the date indicated by point." | 1693 | to the date indicated by point." |
| 1782 | t) | 1694 | t) |
| 1783 | 1695 | ||
| 1784 | (autoload 'insert-bahai-diary-entry "cal-bahai" | ||
| 1785 | "Insert a diary entry for the Baha'i date corresponding to the date | ||
| 1786 | indicated by point." | ||
| 1787 | t) | ||
| 1788 | |||
| 1789 | (autoload 'insert-monthly-bahai-diary-entry "cal-bahai" | ||
| 1790 | "Insert a monthly diary entry for the day of the Baha'i month corresponding | ||
| 1791 | to the date indicated by point." | ||
| 1792 | t) | ||
| 1793 | |||
| 1794 | (autoload 'insert-yearly-bahai-diary-entry "cal-bahai" | ||
| 1795 | "Insert an annual diary entry for the day of the Baha'i year corresponding | ||
| 1796 | to the date indicated by point." | ||
| 1797 | t) | ||
| 1798 | |||
| 1799 | (autoload 'list-calendar-holidays "holidays" | 1696 | (autoload 'list-calendar-holidays "holidays" |
| 1800 | "Create a buffer containing the holidays for the current calendar window. | 1697 | "Create a buffer containing the holidays for the current calendar window. |
| 1801 | The holidays are those in the list `calendar-notable-days'. Returns t if any | 1698 | The holidays are those in the list `calendar-notable-days'. Returns t if any |
| @@ -2043,7 +1940,6 @@ the inserted text. Value is always t." | |||
| 2043 | (define-key calendar-mode-map "ga" 'calendar-goto-astro-day-number) | 1940 | (define-key calendar-mode-map "ga" 'calendar-goto-astro-day-number) |
| 2044 | (define-key calendar-mode-map "gh" 'calendar-goto-hebrew-date) | 1941 | (define-key calendar-mode-map "gh" 'calendar-goto-hebrew-date) |
| 2045 | (define-key calendar-mode-map "gi" 'calendar-goto-islamic-date) | 1942 | (define-key calendar-mode-map "gi" 'calendar-goto-islamic-date) |
| 2046 | (define-key calendar-mode-map "gb" 'calendar-goto-bahai-date) | ||
| 2047 | (define-key calendar-mode-map "gC" 'calendar-goto-chinese-date) | 1943 | (define-key calendar-mode-map "gC" 'calendar-goto-chinese-date) |
| 2048 | (define-key calendar-mode-map "gk" 'calendar-goto-coptic-date) | 1944 | (define-key calendar-mode-map "gk" 'calendar-goto-coptic-date) |
| 2049 | (define-key calendar-mode-map "ge" 'calendar-goto-ethiopic-date) | 1945 | (define-key calendar-mode-map "ge" 'calendar-goto-ethiopic-date) |
| @@ -2084,7 +1980,6 @@ the inserted text. Value is always t." | |||
| 2084 | (define-key calendar-mode-map "pa" 'calendar-print-astro-day-number) | 1980 | (define-key calendar-mode-map "pa" 'calendar-print-astro-day-number) |
| 2085 | (define-key calendar-mode-map "ph" 'calendar-print-hebrew-date) | 1981 | (define-key calendar-mode-map "ph" 'calendar-print-hebrew-date) |
| 2086 | (define-key calendar-mode-map "pi" 'calendar-print-islamic-date) | 1982 | (define-key calendar-mode-map "pi" 'calendar-print-islamic-date) |
| 2087 | (define-key calendar-mode-map "pb" 'calendar-print-bahai-date) | ||
| 2088 | (define-key calendar-mode-map "pf" 'calendar-print-french-date) | 1983 | (define-key calendar-mode-map "pf" 'calendar-print-french-date) |
| 2089 | (define-key calendar-mode-map "pm" 'calendar-print-mayan-date) | 1984 | (define-key calendar-mode-map "pm" 'calendar-print-mayan-date) |
| 2090 | (define-key calendar-mode-map "po" 'calendar-print-other-dates) | 1985 | (define-key calendar-mode-map "po" 'calendar-print-other-dates) |
| @@ -2101,9 +1996,6 @@ the inserted text. Value is always t." | |||
| 2101 | (define-key calendar-mode-map "iid" 'insert-islamic-diary-entry) | 1996 | (define-key calendar-mode-map "iid" 'insert-islamic-diary-entry) |
| 2102 | (define-key calendar-mode-map "iim" 'insert-monthly-islamic-diary-entry) | 1997 | (define-key calendar-mode-map "iim" 'insert-monthly-islamic-diary-entry) |
| 2103 | (define-key calendar-mode-map "iiy" 'insert-yearly-islamic-diary-entry) | 1998 | (define-key calendar-mode-map "iiy" 'insert-yearly-islamic-diary-entry) |
| 2104 | (define-key calendar-mode-map "iBd" 'insert-bahai-diary-entry) | ||
| 2105 | (define-key calendar-mode-map "iBm" 'insert-monthly-bahai-diary-entry) | ||
| 2106 | (define-key calendar-mode-map "iBy" 'insert-yearly-bahai-diary-entry) | ||
| 2107 | (define-key calendar-mode-map "?" 'calendar-goto-info-node) | 1999 | (define-key calendar-mode-map "?" 'calendar-goto-info-node) |
| 2108 | (define-key calendar-mode-map "tm" 'cal-tex-cursor-month) | 2000 | (define-key calendar-mode-map "tm" 'cal-tex-cursor-month) |
| 2109 | (define-key calendar-mode-map "tM" 'cal-tex-cursor-month-landscape) | 2001 | (define-key calendar-mode-map "tM" 'cal-tex-cursor-month-landscape) |
| @@ -2722,9 +2614,6 @@ Defaults to today's date if DATE is not given." | |||
| 2722 | (let ((i (calendar-islamic-date-string date))) | 2614 | (let ((i (calendar-islamic-date-string date))) |
| 2723 | (if (not (string-equal i "")) | 2615 | (if (not (string-equal i "")) |
| 2724 | (format "Islamic date (before sunset): %s" i))) | 2616 | (format "Islamic date (before sunset): %s" i))) |
| 2725 | (let ((b (calendar-bahai-date-string date))) | ||
| 2726 | (if (not (string-equal b "")) | ||
| 2727 | (format "Baha'i date (before sunset): %s" b))) | ||
| 2728 | (format "Chinese date: %s" | 2617 | (format "Chinese date: %s" |
| 2729 | (calendar-chinese-date-string date)) | 2618 | (calendar-chinese-date-string date)) |
| 2730 | (let ((c (calendar-coptic-date-string date))) | 2619 | (let ((c (calendar-coptic-date-string date))) |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 084b2881747..c03b92a73d1 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -136,22 +136,6 @@ The holidays are those in the list `calendar-holidays'." | |||
| 136 | "Mark dates in calendar window that conform to Islamic date MONTH/DAY/YEAR." | 136 | "Mark dates in calendar window that conform to Islamic date MONTH/DAY/YEAR." |
| 137 | t) | 137 | t) |
| 138 | 138 | ||
| 139 | (autoload 'diary-bahai-date "cal-bahai" | ||
| 140 | "Baha'i calendar equivalent of date diary entry." | ||
| 141 | t) | ||
| 142 | |||
| 143 | (autoload 'list-bahai-diary-entries "cal-bahai" | ||
| 144 | "Add any Baha'i date entries from the diary file to `diary-entries-list'." | ||
| 145 | t) | ||
| 146 | |||
| 147 | (autoload 'mark-bahai-diary-entries "cal-bahai" | ||
| 148 | "Mark days in the calendar window that have Baha'i date diary entries." | ||
| 149 | t) | ||
| 150 | |||
| 151 | (autoload 'mark-bahai-calendar-date-pattern "cal-bahai" | ||
| 152 | "Mark dates in calendar window that conform to Baha'i date MONTH/DAY/YEAR." | ||
| 153 | t) | ||
| 154 | |||
| 155 | (autoload 'diary-hebrew-date "cal-hebrew" | 139 | (autoload 'diary-hebrew-date "cal-hebrew" |
| 156 | "Hebrew calendar equivalent of date diary entry." | 140 | "Hebrew calendar equivalent of date diary entry." |
| 157 | t) | 141 | t) |
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el index f535305635c..f8b3d0cd9d6 100644 --- a/lisp/calendar/holidays.el +++ b/lisp/calendar/holidays.el | |||
| @@ -81,10 +81,6 @@ | |||
| 81 | "Holiday on MONTH, DAY (Islamic) called STRING." | 81 | "Holiday on MONTH, DAY (Islamic) called STRING." |
| 82 | t) | 82 | t) |
| 83 | 83 | ||
| 84 | (autoload 'holiday-bahai "cal-bahai" | ||
| 85 | "Holiday on MONTH, DAY (Baha'i) called STRING." | ||
| 86 | t) | ||
| 87 | |||
| 88 | (autoload 'holiday-chinese-new-year "cal-china" | 84 | (autoload 'holiday-chinese-new-year "cal-china" |
| 89 | "Date of Chinese New Year." | 85 | "Date of Chinese New Year." |
| 90 | t) | 86 | t) |
| @@ -141,7 +137,6 @@ The optional LABEL is used to label the buffer created." | |||
| 141 | (if christian-holidays (cons "Christian" christian-holidays)) | 137 | (if christian-holidays (cons "Christian" christian-holidays)) |
| 142 | (if hebrew-holidays (cons "Hebrew" hebrew-holidays)) | 138 | (if hebrew-holidays (cons "Hebrew" hebrew-holidays)) |
| 143 | (if islamic-holidays (cons "Islamic" islamic-holidays)) | 139 | (if islamic-holidays (cons "Islamic" islamic-holidays)) |
| 144 | (if bahai-holidays (cons "Baha'i" bahai-holidays)) | ||
| 145 | (if oriental-holidays (cons "Oriental" oriental-holidays)) | 140 | (if oriental-holidays (cons "Oriental" oriental-holidays)) |
| 146 | (if solar-holidays (cons "Solar" solar-holidays)) | 141 | (if solar-holidays (cons "Solar" solar-holidays)) |
| 147 | (cons "Ask" nil))) | 142 | (cons "Ask" nil))) |