diff options
| author | Richard M. Stallman | 1996-11-09 09:06:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-11-09 09:06:52 +0000 |
| commit | ca67b44e66e358f3d3324e61cb16c24a7c5097ea (patch) | |
| tree | 0b85cdf7a201d36b6c114d75a32f25e626446794 | |
| parent | 7e7c9c4eedf0bfc8cfec3d31a6056e2041e945b1 (diff) | |
| download | emacs-ca67b44e66e358f3d3324e61cb16c24a7c5097ea.tar.gz emacs-ca67b44e66e358f3d3324e61cb16c24a7c5097ea.zip | |
(list-diary-entries): Reread the diary file if it has changed.
| -rw-r--r-- | lisp/calendar/diary-lib.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 175568264a3..875cc2ae840 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -239,9 +239,11 @@ These hooks have the following distinct roles: | |||
| 239 | (message "Preparing diary...") | 239 | (message "Preparing diary...") |
| 240 | (save-excursion | 240 | (save-excursion |
| 241 | (let ((diary-buffer (find-buffer-visiting d-file))) | 241 | (let ((diary-buffer (find-buffer-visiting d-file))) |
| 242 | (set-buffer (if diary-buffer | 242 | (if (not diary-buffer) |
| 243 | diary-buffer | 243 | (set-buffer (find-file-noselect d-file t)) |
| 244 | (find-file-noselect d-file t)))) | 244 | (set-buffer diary-buffer) |
| 245 | (or (verify-visited-file-modtime diary-buffer) | ||
| 246 | (revert-buffer t t)))) | ||
| 245 | (setq selective-display t) | 247 | (setq selective-display t) |
| 246 | (setq selective-display-ellipses nil) | 248 | (setq selective-display-ellipses nil) |
| 247 | (setq old-diary-syntax-table (syntax-table)) | 249 | (setq old-diary-syntax-table (syntax-table)) |