diff options
| author | Glenn Morris | 2005-03-09 00:29:14 +0000 |
|---|---|---|
| committer | Glenn Morris | 2005-03-09 00:29:14 +0000 |
| commit | 91199264e3bbe734bfc6cf87ed8be6cd8dbc84c6 (patch) | |
| tree | f1d87dd3183f4ea26135b0b35ca7eb4870f08bcc | |
| parent | b924026db81f8af7ae4581f0fd26ec1f2a113889 (diff) | |
| download | emacs-91199264e3bbe734bfc6cf87ed8be6cd8dbc84c6.tar.gz emacs-91199264e3bbe734bfc6cf87ed8be6cd8dbc84c6.zip | |
(mark-diary-entries): Only call redraw-calendar in the first of any
recursive calls. Reported by Alan Shutko <ats@acm.org>.
| -rw-r--r-- | lisp/calendar/diary-lib.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 97dc1dd0a71..d682a3f1cc5 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -842,7 +842,11 @@ After the entries are marked, the hooks `nongregorian-diary-marking-hook' and | |||
| 842 | `mark-diary-entries-hook' are run." | 842 | `mark-diary-entries-hook' are run." |
| 843 | (interactive) | 843 | (interactive) |
| 844 | ;; To remove any deleted diary entries. | 844 | ;; To remove any deleted diary entries. |
| 845 | (when mark-diary-entries-in-calendar | 845 | (when (and mark-diary-entries-in-calendar |
| 846 | ;; Avoid redrawing when called recursively, eg through | ||
| 847 | ;; mark-diary-entries-hook for #include's, else only get | ||
| 848 | ;; the last set of diary marks. | ||
| 849 | (not marking-diary-entries)) | ||
| 846 | (setq mark-diary-entries-in-calendar nil) | 850 | (setq mark-diary-entries-in-calendar nil) |
| 847 | (redraw-calendar)) | 851 | (redraw-calendar)) |
| 848 | (let ((marking-diary-entries t) | 852 | (let ((marking-diary-entries t) |