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
c99d4526
Commit
c99d4526
authored
Oct 26, 1994
by
Edward M. Reingold
Browse files
Use new form of calendar-read-date.
parent
e77ed0d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
19 deletions
+5
-19
lisp/calendar/holidays.el
lisp/calendar/holidays.el
+5
-19
No files found.
lisp/calendar/holidays.el
View file @
c99d4526
...
...
@@ -61,25 +61,11 @@ This function is suitable for execution in a .emacs file."
(
interactive
"P"
)
(
save-excursion
(
let*
((
completion-ignore-case
t
)
(
date
(
calendar-current-date
))
(
displayed-month
(
if
arg
(
cdr
(
assoc
(
capitalize
(
completing-read
"Month name: "
(
mapcar
'list
(
append
calendar-month-name-array
nil
))
nil
t
))
(
calendar-make-alist
calendar-month-name-array
)))
(
extract-calendar-month
date
)))
(
displayed-year
(
if
arg
(
calendar-read
"Year (>0): "
'
(
lambda
(
x
)
(
>
x
0
))
(
int-to-string
(
extract-calendar-year
(
calendar-current-date
))))
(
extract-calendar-year
date
))))
(
date
(
if
arg
(
calendar-read-date
t
)
(
calendar-current-date
)))
(
displayed-month
(
extract-calendar-month
date
))
(
displayed-year
(
extract-calendar-year
date
)))
(
list-calendar-holidays
))))
(
defun
check-calendar-holidays
(
date
)
...
...
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