# HG changeset patch # User Glenn Morris # Date 1084407495 0 # Node ID a4d697f046db24cf6e391e94ba89719f6f370b07 # Parent 0ac980237ad3e998b4522f03fc5048bc797f209e (appt-disp-window): Use `calendar-set-mode-line' for a centered mode-line. Takaaki Ota : (appt-disp-window): Do not split window excessively when `split-height-threshold' is low. diff -r 0ac980237ad3 -r a4d697f046db lisp/calendar/appt.el --- a/lisp/calendar/appt.el Wed May 12 20:43:47 2004 +0000 +++ b/lisp/calendar/appt.el Thu May 13 00:18:15 2004 +0000 @@ -449,11 +449,10 @@ (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 " - min-to-app " minutes. " new-time " %-")) + (select-window (split-window))) + (switch-to-buffer appt-disp-buf)) + (calendar-set-mode-line + (format " Appointment in %s minutes. %s " min-to-app new-time)) (erase-buffer) (insert appt-msg) (shrink-window-if-larger-than-buffer (get-buffer-window appt-disp-buf t))