Mercurial > emacs
diff lisp/calendar/cal-x.el @ 93709:1471197c1a94
(calendar-dedicate-diary): Use get-buffer rather than buffer-live-p.
Reported by David Koppelman <koppel@ece.lsu.edu>.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 05 Apr 2008 18:47:34 +0000 |
parents | a4a2b2f63116 |
children | 1715d8011340 |
line wrap: on
line diff
--- a/lisp/calendar/cal-x.el Sat Apr 05 18:42:06 2008 +0000 +++ b/lisp/calendar/cal-x.el Sat Apr 05 18:47:34 2008 +0000 @@ -99,7 +99,7 @@ (get-file-buffer diary-file) ;; If there are no diary entries, there won't be a fancy-diary ;; to dedicate, so make a basic one. - (or (buffer-live-p fancy-diary-buffer) + (or (get-buffer fancy-diary-buffer) (calendar-in-read-only-buffer fancy-diary-buffer (calendar-set-mode-line "Diary Entries"))) fancy-diary-buffer))