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
96ffea61
Commit
96ffea61
authored
Mar 26, 2008
by
Stefan Monnier
Browse files
(list-holidays): Make Y2 optional.
parent
e1422141
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/calendar/holidays.el
lisp/calendar/holidays.el
+3
-3
No files found.
lisp/ChangeLog
View file @
96ffea61
2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
* calendar/holidays.el (list-holidays): Make Y2 optional.
* calendar/appt.el (appt-buffer-name): Don't use a leading space for
buffers shown to the user.
(appt-disp-window): Disable undo explicitly now that the leading space
...
...
lisp/calendar/holidays.el
View file @
96ffea61
...
...
@@ -127,7 +127,7 @@ This function is suitable for execution in a .emacs file."
;; rms: "Emacs commands to display a list of something generally start
;; with `list-'. Please make `list-holidays' the principal name."
;;;###autoload
(
defun
list-holidays
(
y1
y2
&optional
l
label
)
(
defun
list-holidays
(
y1
&optional
y2
l
label
)
"Display holidays for years Y1 to Y2 (inclusive).
The optional list of holidays L defaults to `calendar-holidays'.
...
...
@@ -185,9 +185,9 @@ The optional LABEL is used to label the buffer created."
"Holidays"
(
format
"%s Holidays"
choice
)))))
(
list
start-year
end-year
which
name
)))
(
unless
y2
(
setq
y2
y1
))
(
message
"Computing holidays..."
)
(
let*
((
holiday-buffer
"*Holidays*"
)
(
calendar-holidays
(
if
l
l
calendar-holidays
))
(
let*
((
calendar-holidays
(
if
l
l
calendar-holidays
))
(
title
(
or
label
"Holidays"
))
(
holiday-list
nil
)
(
s
(
calendar-absolute-from-gregorian
(
list
2
1
y1
)))
...
...
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