]> git.eshelyaron.com Git - emacs.git/commitdiff
From Markus Rost <rost@ias.edu>:
authorGlenn Morris <rgm@gnu.org>
Tue, 21 Dec 2004 15:03:31 +0000 (15:03 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 21 Dec 2004 15:03:31 +0000 (15:03 +0000)
(mark-diary-entries): Set mark-diary-entries-in-calendar only after
checking for diary-file.

lisp/calendar/diary-lib.el

index fdade091ab2e8ec7de7e8d1dce6b5b348521b822..511f82f8f2f15a32588a7e985448c6cac5d983a9 100644 (file)
@@ -841,11 +841,11 @@ Each entry in the diary file visible in the calendar window is marked.
 After the entries are marked, the hooks `nongregorian-diary-marking-hook' and
 `mark-diary-entries-hook' are run."
   (interactive)
-  (setq mark-diary-entries-in-calendar t)
   (let ((marking-diary-entries t)
         file-glob-attrs marks)
     (save-excursion
       (set-buffer (find-file-noselect (diary-check-diary-file) t))
+      (setq mark-diary-entries-in-calendar t)
       (message "Marking diary entries...")
       (setq file-glob-attrs (nth 1 (diary-pull-attrs nil '())))
       (let ((d diary-date-forms)