aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-06-22 03:23:38 +0000
committerJim Blandy1993-06-22 03:23:38 +0000
commit44e9df9abc6489ef9d3eaf2e3ee0dc37da86571a (patch)
tree04afc4aaa2c26ed16c99d231b8d67a69c85b07cf
parent1bd410e56eff14bf5cd1a4d26bee6c9966f47e0f (diff)
downloademacs-44e9df9abc6489ef9d3eaf2e3ee0dc37da86571a.tar.gz
emacs-44e9df9abc6489ef9d3eaf2e3ee0dc37da86571a.zip
* diary-ins.el (insert-cyclic-diary-entry): Fix date form.
-rw-r--r--lisp/diary-ins.el24
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."
147 "Insert a cyclic diary entry starting at the date given by point. 147 "Insert a cyclic diary entry starting at the date given by point.
148Prefix arg will make the entry nonmarking." 148Prefix arg will make the entry nonmarking."
149 (interactive "P") 149 (interactive "P")
150 (make-diary-entry 150 (let* ((calendar-date-display-form
151 (format "%s(diary-cyclic %d %s)" 151 (if european-calendar-style
152 sexp-diary-entry-symbol 152 '(day " " month " " year)
153 (calendar-read "Repeat every how many days: " 153 '(month " " day " " year))))
154 '(lambda (x) (> x 0))) 154 (make-diary-entry
155 (calendar-date-string 155 (format "%s(diary-cyclic %d %s)"
156 (or (calendar-cursor-to-date) 156 sexp-diary-entry-symbol
157 (error "Cursor is not on a date!")) 157 (calendar-read "Repeat every how many days: "
158 nil t)) 158 '(lambda (x) (> x 0)))
159 arg)) 159 (calendar-date-string
160 (or (calendar-cursor-to-date)
161 (error "Cursor is not on a date!"))
162 nil t))
163 arg)))
160 164
161(defun insert-hebrew-diary-entry (arg) 165(defun insert-hebrew-diary-entry (arg)
162 "Insert a diary entry. 166 "Insert a diary entry.