From ce28a62838e239d9b1aeab4acd6abcca7f1ebe9e Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 5 Apr 2008 18:47:34 +0000 Subject: [PATCH] (calendar-dedicate-diary): Use get-buffer rather than buffer-live-p. Reported by David Koppelman . --- lisp/calendar/cal-x.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.5