diff options
| author | Gerd Moellmann | 1999-11-03 15:10:21 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-11-03 15:10:21 +0000 |
| commit | 3179af52e45cb0df6fb789a6c6ca89be6c0a611c (patch) | |
| tree | 68ed0b9d869a7dc4a9e0a6a505b0168a89b7d6de | |
| parent | d172e3e45a6a72e401583a135f37eb3e85c75fb9 (diff) | |
| download | emacs-3179af52e45cb0df6fb789a6c6ca89be6c0a611c.tar.gz emacs-3179af52e45cb0df6fb789a6c6ca89be6c0a611c.zip | |
(simple-diary-display): Reset modeline even if
there are no diary entries since the diary buffer may be displayed.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d745877a0c7..48727b52341 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 1999-11-03 Edward M. Reingold <reingold@emr.cs.uiuc.edu> | ||
| 2 | |||
| 3 | * calendar.el (redraw-calendar): Move to nearest date before | ||
| 4 | redrawing. | ||
| 5 | |||
| 6 | * diary-lib.el (simple-diary-display): Reset modeline even if | ||
| 7 | there are no diary entries since the diary buffer may be displayed. | ||
| 8 | |||
| 1 | 1999-11-03 Richard M. Stallman <rms@caffeine.ai.mit.edu> | 9 | 1999-11-03 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
| 2 | 10 | ||
| 3 | * emacs-lisp/debug.el (debug): If noninteractive, display the | 11 | * emacs-lisp/debug.el (debug): If noninteractive, display the |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index c35dcd24824..e45a81aa868 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -392,6 +392,10 @@ changing the variable `diary-include-string'." | |||
| 392 | (msg (format "No diary entries for %s %s" | 392 | (msg (format "No diary entries for %s %s" |
| 393 | (concat date-string (if holiday-list ":" "")) | 393 | (concat date-string (if holiday-list ":" "")) |
| 394 | (mapconcat 'identity holiday-list "; ")))) | 394 | (mapconcat 'identity holiday-list "; ")))) |
| 395 | (calendar-set-mode-line | ||
| 396 | (concat "Diary for " date-string | ||
| 397 | (if holiday-list ": " "") | ||
| 398 | (mapconcat 'identity holiday-list "; "))) | ||
| 395 | (if (or (not diary-entries-list) | 399 | (if (or (not diary-entries-list) |
| 396 | (and (not (cdr diary-entries-list)) | 400 | (and (not (cdr diary-entries-list)) |
| 397 | (string-equal (car (cdr (car diary-entries-list))) ""))) | 401 | (string-equal (car (cdr (car diary-entries-list))) ""))) |
| @@ -407,10 +411,6 @@ changing the variable `diary-include-string'." | |||
| 407 | (setq buffer-read-only t) | 411 | (setq buffer-read-only t) |
| 408 | (display-buffer holiday-buffer) | 412 | (display-buffer holiday-buffer) |
| 409 | (message "No diary entries for %s" date-string)) | 413 | (message "No diary entries for %s" date-string)) |
| 410 | (calendar-set-mode-line | ||
| 411 | (concat "Diary for " date-string | ||
| 412 | (if holiday-list ": " "") | ||
| 413 | (mapconcat 'identity holiday-list "; "))) | ||
| 414 | (display-buffer (find-buffer-visiting d-file)) | 414 | (display-buffer (find-buffer-visiting d-file)) |
| 415 | (message "Preparing diary...done")))) | 415 | (message "Preparing diary...done")))) |
| 416 | 416 | ||