changeset 99886:d5afbdd2b77c

(appt-disp-window): Do a set-buffer when the frame can't be split.
author Martin Rudalics <rudalics@gmx.at>
date Mon, 24 Nov 2008 19:53:00 +0000
parents 7161bac8c5a8
children 641dd6f2ecdc
files lisp/calendar/appt.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/appt.el	Mon Nov 24 19:40:35 2008 +0000
+++ b/lisp/calendar/appt.el	Mon Nov 24 19:53:00 2008 +0000
@@ -417,7 +417,9 @@
       (and (minibufferp) (display-multi-frame-p) (other-frame 1)))
     (if (cdr (assq 'unsplittable (frame-parameters)))
         ;; In an unsplittable frame, use something somewhere else.
-        (display-buffer appt-disp-buf)
+	(progn
+	  (set-buffer appt-disp-buf)
+	  (display-buffer appt-disp-buf))
       (unless (or (special-display-p (buffer-name appt-disp-buf))
                   (same-window-p (buffer-name appt-disp-buf)))
         ;; By default, split the bottom window and use the lower part.