changeset 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 969b814ef0a8
children 07af23654bc8
files lisp/calendar/cal-x.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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))