# HG changeset patch # User Stefan Monnier # Date 1206503023 0 # Node ID a2947a0dab5608df591af0747c3bd0faa7722369 # Parent 0f4b8a3dc49ee6135c4ec763cde84f67df5eb93a (list-holidays): Make Y2 optional. diff -r 0f4b8a3dc49e -r a2947a0dab56 lisp/ChangeLog --- a/lisp/ChangeLog Wed Mar 26 03:42:57 2008 +0000 +++ b/lisp/ChangeLog Wed Mar 26 03:43:43 2008 +0000 @@ -1,5 +1,7 @@ 2008-03-26 Stefan Monnier + * calendar/holidays.el (list-holidays): Make Y2 optional. + * calendar/appt.el (appt-buffer-name): Don't use a leading space for buffers shown to the user. (appt-disp-window): Disable undo explicitly now that the leading space diff -r 0f4b8a3dc49e -r a2947a0dab56 lisp/calendar/holidays.el --- a/lisp/calendar/holidays.el Wed Mar 26 03:42:57 2008 +0000 +++ b/lisp/calendar/holidays.el Wed Mar 26 03:43:43 2008 +0000 @@ -127,7 +127,7 @@ ;; rms: "Emacs commands to display a list of something generally start ;; with `list-'. Please make `list-holidays' the principal name." ;;;###autoload -(defun list-holidays (y1 y2 &optional l label) +(defun list-holidays (y1 &optional y2 l label) "Display holidays for years Y1 to Y2 (inclusive). The optional list of holidays L defaults to `calendar-holidays'. @@ -185,9 +185,9 @@ "Holidays" (format "%s Holidays" choice))))) (list start-year end-year which name))) + (unless y2 (setq y2 y1)) (message "Computing holidays...") - (let* ((holiday-buffer "*Holidays*") - (calendar-holidays (if l l calendar-holidays)) + (let* ((calendar-holidays (if l l calendar-holidays)) (title (or label "Holidays")) (holiday-list nil) (s (calendar-absolute-from-gregorian (list 2 1 y1)))