# HG changeset patch # User Glenn Morris # Date 1207804797 0 # Node ID 3784131a315f44ae72d363d8a919290b5ea586e7 # Parent 121ebb4e0a03220c8fdc0392e77038883423fc8c (diary-mark-sexp-entries): Fix replacement of calendar-for-loop. diff -r 121ebb4e0a03 -r 3784131a315f lisp/calendar/diary-lib.el --- a/lisp/calendar/diary-lib.el Thu Apr 10 04:05:35 2008 +0000 +++ b/lisp/calendar/diary-lib.el Thu Apr 10 05:19:57 2008 +0000 @@ -1325,8 +1325,7 @@ (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 @@ (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