]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/calendar/cal-menu.el (cal-menu-holidays-menu): Use a proper closure
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 May 2021 20:58:54 +0000 (16:58 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 May 2021 20:59:08 +0000 (16:59 -0400)
lisp/calendar/cal-menu.el

index 497f3329055139689a237f392b0e1a9a81577363..ef84bfadd319a0df0648fd189a1e2a989c2f4eb0 100644 (file)
         ;; The bug has since been fixed.
         (dotimes (i 11)
           (push (vector (format "hol-year-%d" i)
-                        `(lambda ()
-                           (interactive)
-                           (holiday-list (+ displayed-year ,(- i 5))))
+                        (lambda ()
+                          (interactive)
+                          (holiday-list (+ displayed-year (- i 5))))
                         :label `(format "For Year %d"
                                        (+ displayed-year ,(- i 5))))
                 l))