Commit 6e81a223 authored by Glenn Morris's avatar Glenn Morris

(diary-mark-sexp-entries): Fix replacement of calendar-for-loop.

parent d58ee9f1
......@@ -22,6 +22,7 @@
* calendar/appt.el (appt): Add :prefix.
* calendar/diary-lib.el (diary-hook): Doc fix.
(diary-mark-sexp-entries): Fix replacement of calendar-for-loop.
2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
......
......@@ -1325,8 +1325,7 @@ is marked. See the documentation for the function `diary-list-sexp-entries'."
(setq m displayed-month
y displayed-year))
(calendar-increment-month m y -1)
(setq first-date (calendar-absolute-from-gregorian (list m 1 y))
date (1- first-date))
(setq first-date (calendar-absolute-from-gregorian (list m 1 y)))
(calendar-increment-month m y 2)
(setq last-date
(calendar-absolute-from-gregorian
......@@ -1351,6 +1350,7 @@ is marked. See the documentation for the function `diary-list-sexp-entries'."
(forward-line 1))
(if (bolp) (backward-char 1))
(setq entry (buffer-substring-no-properties entry-start (point))))
(setq date (1- first-date))
(while (<= (setq date (1+ date)) last-date)
(when (setq mark (diary-sexp-entry
sexp entry
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment