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
730ebc50
Commit
730ebc50
authored
Mar 14, 1993
by
Jim Blandy
Browse files
* diary-insert.el (insert-anniversary-diary-entry,
insert-block-diary-entry): Fix calendar-date-display-form used.
parent
8c64cf16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
lisp/diary-ins.el
lisp/diary-ins.el
+17
-9
No files found.
lisp/diary-ins.el
View file @
730ebc50
...
...
@@ -103,20 +103,28 @@ Prefix arg will make the entry nonmarking."
"Insert an anniversary diary entry for the date given by point.
Prefix arg will make the entry nonmarking."
(
interactive
"P"
)
(
make-diary-entry
(
format
"%s(diary-anniversary %s)"
sexp-diary-entry-symbol
(
calendar-date-string
(
or
(
calendar-cursor-to-date
)
(
error
"Cursor is not on a date!"
))
nil
t
))
arg
))
(
let*
((
calendar-date-display-form
(
if
european-calendar-style
'
(
day
" "
month
" "
year
)
'
(
month
" "
day
" "
year
))))
(
make-diary-entry
(
format
"%s(diary-anniversary %s)"
sexp-diary-entry-symbol
(
calendar-date-string
(
or
(
calendar-cursor-to-date
)
(
error
"Cursor is not on a date!"
))
nil
t
))
arg
)))
(
defun
insert-block-diary-entry
(
arg
)
"Insert a block diary entry for the days between the point and marked date.
Prefix arg will make the entry nonmarking."
(
interactive
"P"
)
(
let*
((
cursor
(
or
(
calendar-cursor-to-date
)
(
let*
((
calendar-date-display-form
(
if
european-calendar-style
'
(
day
" "
month
" "
year
)
'
(
month
" "
day
" "
year
)))
(
cursor
(
or
(
calendar-cursor-to-date
)
(
error
"Cursor is not on a date!"
)))
(
mark
(
or
(
car
calendar-mark-ring
)
(
error
"No mark set in this buffer"
)))
...
...
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