comparison lisp/calendar/calendar.el @ 92895:379d912c3710

(diary-file): Doc fix. (calendar-buffer-list): Return buffers rather than strings (fixes previous change).
author Glenn Morris <rgm@gnu.org>
date Fri, 14 Mar 2008 02:46:17 +0000
parents 7096add7a945
children d0fa9dff8d20
comparison
equal deleted inserted replaced
92894:70290cfccdc1 92895:379d912c3710
333 333
334 with the remainder of the line being the diary entry string for 334 with the remainder of the line being the diary entry string for
335 that date. MONTH and DAY are one or two digit numbers, YEAR is a 335 that date. MONTH and DAY are one or two digit numbers, YEAR is a
336 number and may be written in full or abbreviated to the final two 336 number and may be written in full or abbreviated to the final two
337 digits (if `abbreviated-calendar-year' is non-nil). MONTHNAME 337 digits (if `abbreviated-calendar-year' is non-nil). MONTHNAME
338 and DAYNAME can be spelt in full (as specified by the variables 338 and DAYNAME can be spelled in full (as specified by the variables
339 `calendar-month-name-array' and `calendar-day-name-array'), 339 `calendar-month-name-array' and `calendar-day-name-array'),
340 abbreviated (as specified by `calendar-month-abbrev-array' and 340 abbreviated (as specified by `calendar-month-abbrev-array' and
341 `calendar-day-abbrev-array') with or without a period, 341 `calendar-day-abbrev-array') with or without a period,
342 capitalized or not. Any of DAY, MONTH, or MONTHNAME, YEAR can be 342 capitalized or not. Any of DAY, MONTH, or MONTHNAME, YEAR can be
343 `*' which matches any day, month, or year, respectively. If the 343 `*' which matches any day, month, or year, respectively. If the
1849 (push w list))) 1849 (push w list)))
1850 nil t) 1850 nil t)
1851 list)) 1851 list))
1852 1852
1853 (defun calendar-buffer-list () 1853 (defun calendar-buffer-list ()
1854 "List of all calendar-related buffers." 1854 "List of all calendar-related buffers (as buffers, not strings)."
1855 (let (buffs) 1855 (let (buffs)
1856 (dolist (b (list cal-hebrew-yahrzeit-buffer lunar-phases-buffer 1856 (dolist (b (list cal-hebrew-yahrzeit-buffer lunar-phases-buffer
1857 holiday-buffer fancy-diary-buffer 1857 holiday-buffer fancy-diary-buffer
1858 (get-file-buffer diary-file) 1858 (get-file-buffer diary-file)
1859 calendar-buffer other-calendars-buffer)) 1859 calendar-buffer other-calendars-buffer))
1860 (and b (get-buffer b) 1860 (and b (setq b (get-buffer b))
1861 (push b buffs))) 1861 (push b buffs)))
1862 buffs)) 1862 buffs))
1863 1863
1864 (defun exit-calendar () 1864 (defun exit-calendar ()
1865 "Get out of the calendar window and hide it and related buffers." 1865 "Get out of the calendar window and hide it and related buffers."