# HG changeset patch # User Glenn Morris # Date 1195958978 0 # Node ID 4c73f7497804e4c6ef8ca9f259f3c9054b3de9cd # Parent 8a1bf64a83a67a204796b9c231ebb1ec05fbfdde Revert previous commit, made without ChangeLog entry. diff -r 8a1bf64a83a6 -r 4c73f7497804 lisp/calendar/cal-menu.el --- a/lisp/calendar/cal-menu.el Sun Nov 25 01:58:54 2007 +0000 +++ b/lisp/calendar/cal-menu.el Sun Nov 25 02:49:38 2007 +0000 @@ -95,11 +95,13 @@ ,@(let ((l ())) ;; Show 11 years--5 before, 5 after year of middle month. (dotimes (i 11) - (let ((y (+ 2007 -5 i))) - (push (vector (format "For Year %s" y) - (list (list 'lambda 'nil '(interactive) - (list 'list-holidays y y)))) - l))) + (push (vector "For Year" + `(lambda () + (interactive) + (holiday-list (+ displayed-year ,(- i 5)) + (+ displayed-year ,(- i 5)))) + :suffix `(number-to-string (+ displayed-year ,(- i 5)))) + l)) (nreverse l)) "--" ["Unmark Calendar" calendar-unmark]