Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
60806b73
Commit
60806b73
authored
Nov 26, 2007
by
Glenn Morris
Browse files
(cal-menu-holidays-menu): Use :label rather than :suffix.
parent
42e32ed8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/calendar/cal-menu.el
lisp/calendar/cal-menu.el
+4
-2
No files found.
lisp/ChangeLog
View file @
60806b73
2007-11-26 Glenn Morris <rgm@gnu.org>
* calendar/cal-menu.el (cal-menu-holidays-menu): Use :label rather
than :suffix.
* emacs-lisp/easymenu.el (easy-menu-define): Doc fix.
2007-11-26 Simon Josefsson <simon@josefsson.org>
...
...
lisp/calendar/cal-menu.el
View file @
60806b73
...
...
@@ -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
))
"--"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment