diff options
| author | Glenn Morris | 2008-03-26 03:13:55 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-26 03:13:55 +0000 |
| commit | f21811af0fd8eb7b27eab34b83ce8e885664ec09 (patch) | |
| tree | e857822ccd61049ee76da29d4019b05e69c47642 | |
| parent | d2e009298d7df51b8dd0855848f16187eb886d07 (diff) | |
| download | emacs-f21811af0fd8eb7b27eab34b83ce8e885664ec09.tar.gz emacs-f21811af0fd8eb7b27eab34b83ce8e885664ec09.zip | |
Provide calendar before requiring cal-menu.
(oriental-holidays, solar-holidays): Assume atan always bound.
(solar-holidays): Simplify holiday-sexp calls.
| -rw-r--r-- | lisp/calendar/calendar.el | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 7dc584e76a4..15e576fbcda 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -118,6 +118,8 @@ | |||
| 118 | (eval-and-compile | 118 | (eval-and-compile |
| 119 | (load "cal-loaddefs" nil 'quiet)) | 119 | (load "cal-loaddefs" nil 'quiet)) |
| 120 | 120 | ||
| 121 | ;; Avoid recursive load of calendar when loading cal-menu. | ||
| 122 | (provide 'calendar) | ||
| 121 | (require 'cal-menu) | 123 | (require 'cal-menu) |
| 122 | 124 | ||
| 123 | 125 | ||
| @@ -714,8 +716,7 @@ See the documentation for `calendar-holidays' for details." | |||
| 714 | 716 | ||
| 715 | ;;;###autoload | 717 | ;;;###autoload |
| 716 | (defcustom oriental-holidays | 718 | (defcustom oriental-holidays |
| 717 | '((if (fboundp 'atan) | 719 | '((holiday-chinese-new-year)) |
| 718 | (holiday-chinese-new-year))) | ||
| 719 | "Oriental holidays. | 720 | "Oriental holidays. |
| 720 | See the documentation for `calendar-holidays' for details." | 721 | See the documentation for `calendar-holidays' for details." |
| 721 | :type 'sexp | 722 | :type 'sexp |
| @@ -1008,27 +1009,17 @@ See the documentation for `calendar-holidays' for details." | |||
| 1008 | 1009 | ||
| 1009 | ;;;###autoload | 1010 | ;;;###autoload |
| 1010 | (defcustom solar-holidays | 1011 | (defcustom solar-holidays |
| 1011 | '((if (fboundp 'atan) | 1012 | '((solar-equinoxes-solstices) |
| 1012 | (solar-equinoxes-solstices)) | 1013 | (holiday-sexp calendar-daylight-savings-starts |
| 1013 | (if (require 'cal-dst) | 1014 | (format "Daylight Saving Time Begins %s" |
| 1014 | (funcall | 1015 | (solar-time-string |
| 1015 | 'holiday-sexp | 1016 | (/ calendar-daylight-savings-starts-time (float 60)) |
| 1016 | calendar-daylight-savings-starts | 1017 | calendar-standard-time-zone-name))) |
| 1017 | '(format "Daylight Saving Time Begins %s" | 1018 | (holiday-sexp calendar-daylight-savings-ends |
| 1018 | (if (fboundp 'atan) | 1019 | (format "Daylight Saving Time Ends %s" |
| 1019 | (solar-time-string | 1020 | (solar-time-string |
| 1020 | (/ calendar-daylight-savings-starts-time (float 60)) | 1021 | (/ calendar-daylight-savings-ends-time (float 60)) |
| 1021 | calendar-standard-time-zone-name) | 1022 | calendar-daylight-time-zone-name)))) |
| 1022 | "")))) | ||
| 1023 | (funcall | ||
| 1024 | 'holiday-sexp | ||
| 1025 | calendar-daylight-savings-ends | ||
| 1026 | '(format "Daylight Saving Time Ends %s" | ||
| 1027 | (if (fboundp 'atan) | ||
| 1028 | (solar-time-string | ||
| 1029 | (/ calendar-daylight-savings-ends-time (float 60)) | ||
| 1030 | calendar-daylight-time-zone-name) | ||
| 1031 | "")))) | ||
| 1032 | "Sun-related holidays. | 1023 | "Sun-related holidays. |
| 1033 | See the documentation for `calendar-holidays' for details." | 1024 | See the documentation for `calendar-holidays' for details." |
| 1034 | :type 'sexp | 1025 | :type 'sexp |