]> git.eshelyaron.com Git - emacs.git/commitdiff
(mark-diary-entries): No need to redraw calendar if that is why we
authorGlenn Morris <rgm@gnu.org>
Fri, 11 Mar 2005 21:44:06 +0000 (21:44 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 11 Mar 2005 21:44:06 +0000 (21:44 +0000)
were called.

lisp/calendar/diary-lib.el

index d682a3f1cc5a165986b27b7a953c29659aca8122..124b29c3fe76ded14028dde9de2692ff2a8a9df4 100644 (file)
@@ -846,7 +846,10 @@ After the entries are marked, the hooks `nongregorian-diary-marking-hook' and
              ;; Avoid redrawing when called recursively, eg through
              ;; mark-diary-entries-hook for #include's, else only get
              ;; the last set of diary marks.
-             (not marking-diary-entries))
+             (not marking-diary-entries)
+             ;; If called from redraw-calendar, the calendar has been
+             ;; erased, so no need to unmark the diary entries.
+             (not calendar-redrawing))
     (setq mark-diary-entries-in-calendar nil)
     (redraw-calendar))
   (let ((marking-diary-entries t)