changeset 86445:8385b57c5ce6

(cal-menu-holidays-menu): Use :label rather than :suffix.
author Glenn Morris <rgm@gnu.org>
date Mon, 26 Nov 2007 07:28:23 +0000
parents 49cdf6b61ecb
children 39b77bce26fd
files lisp/calendar/cal-menu.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/cal-menu.el	Mon Nov 26 03:49:23 2007 +0000
+++ b/lisp/calendar/cal-menu.el	Mon Nov 26 07:28:23 2007 +0000
@@ -94,13 +94,15 @@
     "--"
     ,@(let ((l ()))
         ;; Show 11 years--5 before, 5 after year of middle month.
+        ;; http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01813.html
         (dotimes (i 11)
-          (push (vector "For Year"
+          (push (vector (format "hol-year-%d" i)
                         `(lambda ()
                            (interactive)
                            (holiday-list (+ displayed-year ,(- i 5))
                                          (+ displayed-year ,(- i 5))))
-                        :suffix `(number-to-string (+ displayed-year ,(- i 5))))
+                        :label `(format "For Year %d"
+                                       (+ displayed-year ,(- i 5))))
                 l))
         (nreverse l))
     "--"