diff options
| author | Glenn Morris | 2008-04-05 18:47:34 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-05 18:47:34 +0000 |
| commit | ce28a62838e239d9b1aeab4acd6abcca7f1ebe9e (patch) | |
| tree | 66c3addf2c7b09b52af7443410d3e8f5fefa5abc | |
| parent | 35f851e137c8c18ac2173bce5e4d3749dc848a30 (diff) | |
| download | emacs-ce28a62838e239d9b1aeab4acd6abcca7f1ebe9e.tar.gz emacs-ce28a62838e239d9b1aeab4acd6abcca7f1ebe9e.zip | |
(calendar-dedicate-diary): Use get-buffer rather than buffer-live-p.
Reported by David Koppelman <koppel@ece.lsu.edu>.
| -rw-r--r-- | lisp/calendar/cal-x.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calendar/cal-x.el b/lisp/calendar/cal-x.el index 24322a1ffdd..0aeb04a97b3 100644 --- a/lisp/calendar/cal-x.el +++ b/lisp/calendar/cal-x.el | |||
| @@ -99,7 +99,7 @@ Runs `calendar-after-frame-setup-hook', selects frame, iconifies if needed." | |||
| 99 | (get-file-buffer diary-file) | 99 | (get-file-buffer diary-file) |
| 100 | ;; If there are no diary entries, there won't be a fancy-diary | 100 | ;; If there are no diary entries, there won't be a fancy-diary |
| 101 | ;; to dedicate, so make a basic one. | 101 | ;; to dedicate, so make a basic one. |
| 102 | (or (buffer-live-p fancy-diary-buffer) | 102 | (or (get-buffer fancy-diary-buffer) |
| 103 | (calendar-in-read-only-buffer fancy-diary-buffer | 103 | (calendar-in-read-only-buffer fancy-diary-buffer |
| 104 | (calendar-set-mode-line "Diary Entries"))) | 104 | (calendar-set-mode-line "Diary Entries"))) |
| 105 | fancy-diary-buffer)) | 105 | fancy-diary-buffer)) |