]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix holiday menu bug
authorMark A. Hershberger <mah@everybody.org>
Sat, 24 Nov 2007 19:44:25 +0000 (19:44 +0000)
committerMark A. Hershberger <mah@everybody.org>
Sat, 24 Nov 2007 19:44:25 +0000 (19:44 +0000)
lisp/calendar/cal-menu.el

index 7158774dd2cd9556914810211e58c5d50eb4caae..094e6421eae4bc897a815ca77aab51e9143cae80 100644 (file)
     ,@(let ((l ()))
         ;; Show 11 years--5 before, 5 after year of middle month.
         (dotimes (i 11)
-          (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))
+         (let ((y (+ 2007 -5 i)))
+           (push (vector (format "For Year %s" y)
+                         (list (list 'lambda 'nil '(interactive)
+                                     (list 'list-holidays y y))))
+                l)))
         (nreverse l))
     "--"
     ["Unmark Calendar" calendar-unmark]