diff options
| author | Glenn Morris | 2007-11-26 07:28:37 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-26 07:28:37 +0000 |
| commit | 60806b7399683a8bddf4cb25ecce2534b4784e76 (patch) | |
| tree | 897792418d6c9d912aa8817063dd417367bec515 | |
| parent | 42e32ed89c84725531121a99129767a52b22b105 (diff) | |
| download | emacs-60806b7399683a8bddf4cb25ecce2534b4784e76.tar.gz emacs-60806b7399683a8bddf4cb25ecce2534b4784e76.zip | |
(cal-menu-holidays-menu): Use :label rather than :suffix.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/calendar/cal-menu.el | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8b8d3798922..a10977b5201 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-11-26 Glenn Morris <rgm@gnu.org> | 1 | 2007-11-26 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * calendar/cal-menu.el (cal-menu-holidays-menu): Use :label rather | ||
| 4 | than :suffix. | ||
| 5 | |||
| 3 | * emacs-lisp/easymenu.el (easy-menu-define): Doc fix. | 6 | * emacs-lisp/easymenu.el (easy-menu-define): Doc fix. |
| 4 | 7 | ||
| 5 | 2007-11-26 Simon Josefsson <simon@josefsson.org> | 8 | 2007-11-26 Simon Josefsson <simon@josefsson.org> |
diff --git a/lisp/calendar/cal-menu.el b/lisp/calendar/cal-menu.el index 7158774dd2c..60004f7983a 100644 --- a/lisp/calendar/cal-menu.el +++ b/lisp/calendar/cal-menu.el | |||
| @@ -94,13 +94,15 @@ | |||
| 94 | "--" | 94 | "--" |
| 95 | ,@(let ((l ())) | 95 | ,@(let ((l ())) |
| 96 | ;; Show 11 years--5 before, 5 after year of middle month. | 96 | ;; Show 11 years--5 before, 5 after year of middle month. |
| 97 | ;; http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01813.html | ||
| 97 | (dotimes (i 11) | 98 | (dotimes (i 11) |
| 98 | (push (vector "For Year" | 99 | (push (vector (format "hol-year-%d" i) |
| 99 | `(lambda () | 100 | `(lambda () |
| 100 | (interactive) | 101 | (interactive) |
| 101 | (holiday-list (+ displayed-year ,(- i 5)) | 102 | (holiday-list (+ displayed-year ,(- i 5)) |
| 102 | (+ displayed-year ,(- i 5)))) | 103 | (+ displayed-year ,(- i 5)))) |
| 103 | :suffix `(number-to-string (+ displayed-year ,(- i 5)))) | 104 | :label `(format "For Year %d" |
| 105 | (+ displayed-year ,(- i 5)))) | ||
| 104 | l)) | 106 | l)) |
| 105 | (nreverse l)) | 107 | (nreverse l)) |
| 106 | "--" | 108 | "--" |