diff options
author | Jim Blandy <jimb@redhat.com> | 1993-06-22 03:23:38 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-06-22 03:23:38 +0000 |
commit | 44e9df9abc6489ef9d3eaf2e3ee0dc37da86571a (patch) | |
tree | 04afc4aaa2c26ed16c99d231b8d67a69c85b07cf /lisp/diary-ins.el | |
parent | 1bd410e56eff14bf5cd1a4d26bee6c9966f47e0f (diff) | |
download | emacs-44e9df9abc6489ef9d3eaf2e3ee0dc37da86571a.tar.gz |
* diary-ins.el (insert-cyclic-diary-entry): Fix date form.
Diffstat (limited to 'lisp/diary-ins.el')
-rw-r--r-- | lisp/diary-ins.el | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/lisp/diary-ins.el b/lisp/diary-ins.el index edf4d6e66c9..a1418479c7e 100644 --- a/lisp/diary-ins.el +++ b/lisp/diary-ins.el @@ -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. |