diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-11-29 00:32:50 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-11-29 00:32:50 +0000 |
commit | 058961dde397e9e65f30b91837cf7bfb35df9e62 (patch) | |
tree | d0470396292f020e46a807ba074dc5cddcafd1f9 /lisp/calendar/appt.el | |
parent | f49770515bd2909b1b9ab752cbd63dbd14dc29f3 (diff) | |
download | emacs-058961dde397e9e65f30b91837cf7bfb35df9e62.tar.gz |
(appt-disp-window): Use pop-to-buffer,
to support special-display and same-window features.
Diffstat (limited to 'lisp/calendar/appt.el')
-rw-r--r-- | lisp/calendar/appt.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el index d9e4fd0e328..62296bb9a57 100644 --- a/lisp/calendar/appt.el +++ b/lisp/calendar/appt.el @@ -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 " |