aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-13 04:06:47 +0000
committerGlenn Morris2008-03-13 04:06:47 +0000
commitbae5a5a39dd86e36af968355b38333239d8aedbe (patch)
tree720ab6d6e50bb9db761142ba0aedeca0951c8ca2
parentf575f9aba955d32111ef6487aa64317b28e653f4 (diff)
downloademacs-bae5a5a39dd86e36af968355b38333239d8aedbe.tar.gz
emacs-bae5a5a39dd86e36af968355b38333239d8aedbe.zip
(cal-hebrew-yahrzeit-buffer): New constant.
(calendar-buffer-list): Simplify.
-rw-r--r--lisp/ChangeLog33
-rw-r--r--lisp/calendar/calendar.el22
2 files changed, 44 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 97c66c08d26..707f5fda313 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -5,6 +5,39 @@
5 5
6 * startup.el (command-line-1): Rename -scriptload to -internal-script. 6 * startup.el (command-line-1): Rename -scriptload to -internal-script.
7 7
8 * calendar/calendar.el (cal-hebrew-yahrzeit-buffer): New constant.
9 (calendar-buffer-list): Simplify.
10
11 * calendar/cal-hebrew.el (list-yahrzeit-dates): Use
12 cal-hebrew-yahrzeit-buffer.
13
14 * calendar/cal-x.el (calendar-only-one-frame-setup)
15 (calendar-two-frame-setup): Doc fixes.
16 (special-display-buffer-names): Use cal-hebrew-yahrzeit-buffer.
17
18 * calendar/appt.el (appt-mode-string): Mark as risky.
19 (appt-check): Apply mode-line-emphasis face to appt-mode-string.
20
21 * calendar/cal-iso.el (calendar-absolute-from-iso)
22 (calendar-iso-read-args): Simplify.
23 (calendar-iso-date-string, calendar-iso-read-args)
24 (calendar-goto-iso-date, calendar-goto-iso-week): Doc fixes.
25
26 * calendar/cal-julian.el (calendar-julian-from-absolute): Use zerop.
27 (displayed-month, displayed-year): Move declarations where needed.
28 (calendar-print-astro-day-number): Doc fix.
29
30 * calendar/cal-persia.el (persian-calendar-month-name-array)
31 (persian-calendar-epoch, calendar-persian-date-string): Doc fixes.
32 (persian-prompt-for-date): Remove local variable `today'.
33
34 * calendar/solar.el (solar-moment, solar-exact-local-noon)
35 (solar-sunrise-sunset, solar-sunrise-sunset-string)
36 (solar-ephemeris-time, solar-date-next-longitude, solar-sidereal-time):
37 (diary-sabbath-candles, solar-equinoxes/solstices)
38 (solar-equinoxes-solstices): Use cadr, cdar, nth, zerop.
39 (solar-time-equation, solar-date-to-et): Simplify.
40
8 * mail/supercite.el: Remove the `function' in `(function (lambda'. 41 * mail/supercite.el: Remove the `function' in `(function (lambda'.
9 Replace `(car (cdr' with cadr'. 42 Replace `(car (cdr' with cadr'.
10 43
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 7daf95b88c0..733772c4acc 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1165,6 +1165,9 @@ with descriptive strings such as
1165(defconst lunar-phases-buffer "*Phases of Moon*" 1165(defconst lunar-phases-buffer "*Phases of Moon*"
1166 "Name of the buffer used for the lunar phases.") 1166 "Name of the buffer used for the lunar phases.")
1167 1167
1168(defconst cal-hebrew-yahrzeit-buffer "*Yahrzeits*"
1169 "Name of the buffer used by `list-yahrzeit-dates'.")
1170
1168(defmacro increment-calendar-month (mon yr n) 1171(defmacro increment-calendar-month (mon yr n)
1169 "Increment the variables MON and YR by N months. 1172 "Increment the variables MON and YR by N months.
1170Forward if N is positive or backward if N is negative. 1173Forward if N is positive or backward if N is negative.
@@ -1958,17 +1961,14 @@ the STRINGS are just concatenated and the result truncated."
1958 1961
1959(defun calendar-buffer-list () 1962(defun calendar-buffer-list ()
1960 "List of all calendar-related buffers." 1963 "List of all calendar-related buffers."
1961 (let* ((diary-buffer (get-file-buffer diary-file)) 1964 (let (buffs)
1962 (buffers (list "*Yahrzeits*" lunar-phases-buffer holiday-buffer 1965 (dolist (b (list cal-hebrew-yahrzeit-buffer lunar-phases-buffer
1963 fancy-diary-buffer diary-buffer calendar-buffer 1966 holiday-buffer fancy-diary-buffer
1964 other-calendars-buffer)) 1967 (get-file-buffer diary-file)
1965 (buffer-list nil)) 1968 calendar-buffer other-calendars-buffer))
1966 (dolist (b buffers) 1969 (and b (get-buffer b)
1967 (setq b (cond ((stringp b) (get-buffer b)) 1970 (push b buffs)))
1968 ((bufferp b) b) 1971 buffs))
1969 (t nil)))
1970 (if b (push b buffer-list)))
1971 buffer-list))
1972 1972
1973(defun exit-calendar () 1973(defun exit-calendar ()
1974 "Get out of the calendar window and hide it and related buffers." 1974 "Get out of the calendar window and hide it and related buffers."