(appt-disp-window): Do a set-buffer when the
authorMartin Rudalics <rudalics@gmx.at>
Mon, 24 Nov 2008 19:53:33 +0000 (19:53 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 24 Nov 2008 19:53:33 +0000 (19:53 +0000)
frame can't be split.

lisp/ChangeLog
lisp/calendar/appt.el

index 9d6ea22..fe34317 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-24  Martin Rudalics  <rudalics@gmx.at>
+
+       * calendar/appt.el (appt-disp-window): Do a set-buffer when the
+       frame can't be split.
+
 2008-11-24  Ulf Jasper  <ulf@web.de>
 
        * net/newst-treeview.el (newsticker--treeview-current-feed): Doc
index fa69566..878e889 100644 (file)
@@ -417,7 +417,9 @@ message APPT-MSG in a separate buffer."
       (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.