]> git.eshelyaron.com Git - emacs.git/commitdiff
(appt-disp-window): Use pop-to-buffer,
authorRichard M. Stallman <rms@gnu.org>
Sun, 29 Nov 1998 00:32:50 +0000 (00:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 29 Nov 1998 00:32:50 +0000 (00:32 +0000)
to support special-display and same-window features.

lisp/calendar/appt.el

index d9e4fd0e328854713dbba05b35856d1e2e838de9..62296bb9a5704dc86bc79523598212bbd7e49f62 100644 (file)
@@ -391,12 +391,14 @@ The following variables control appointment notification:
         (this-window (selected-window))
         (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name))))
 
-    (appt-select-lowest-window)
     (if (cdr (assq 'unsplittable (frame-parameters)))
        ;; In an unsplittable frame, use something somewhere else.
        (display-buffer appt-disp-buf)
-      ;; Otherwise, split the bottom window and use the lower part.
-      (split-window)
+      (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.
+       (appt-select-lowest-window)
+       (split-window))
       (pop-to-buffer appt-disp-buf))
     (setq mode-line-format 
          (concat "-------------------- Appointment in "