From: Glenn Morris Date: Sat, 5 Apr 2008 18:47:34 +0000 (+0000) Subject: (calendar-dedicate-diary): Use get-buffer rather than buffer-live-p. X-Git-Tag: emacs-pretest-23.0.90~6543 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce28a62838e239d9b1aeab4acd6abcca7f1ebe9e;p=emacs.git (calendar-dedicate-diary): Use get-buffer rather than buffer-live-p. Reported by David Koppelman . --- 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." (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))