mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
* diary-ins.el (insert-cyclic-diary-entry): Fix date form.
This commit is contained in:
parent
1bd410e56e
commit
44e9df9abc
1 changed files with 14 additions and 10 deletions
|
|
@ -147,16 +147,20 @@ Prefix arg will make the entry nonmarking."
|
|||
"Insert a cyclic diary entry starting at the date given by point.
|
||||
Prefix arg will make the entry nonmarking."
|
||||
(interactive "P")
|
||||
(make-diary-entry
|
||||
(format "%s(diary-cyclic %d %s)"
|
||||
sexp-diary-entry-symbol
|
||||
(calendar-read "Repeat every how many days: "
|
||||
'(lambda (x) (> x 0)))
|
||||
(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-cyclic %d %s)"
|
||||
sexp-diary-entry-symbol
|
||||
(calendar-read "Repeat every how many days: "
|
||||
'(lambda (x) (> x 0)))
|
||||
(calendar-date-string
|
||||
(or (calendar-cursor-to-date)
|
||||
(error "Cursor is not on a date!"))
|
||||
nil t))
|
||||
arg)))
|
||||
|
||||
(defun insert-hebrew-diary-entry (arg)
|
||||
"Insert a diary entry.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue