diff options
| author | Glenn Morris | 2007-11-24 21:53:02 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-24 21:53:02 +0000 |
| commit | cb6c237a6f3444bebe104f59ae6502fad7dca8da (patch) | |
| tree | f51937b274ee2b95285bf6ae600884d2d8ec658f /lisp | |
| parent | 40f79f5b3c95ea15758d6cd58669860fe2d00d2b (diff) | |
| download | emacs-cb6c237a6f3444bebe104f59ae6502fad7dca8da.tar.gz emacs-cb6c237a6f3444bebe104f59ae6502fad7dca8da.zip | |
(appt-disp-window): Restore a simplified version of
minibuffer-avoidance code deleted in previous change.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/calendar/appt.el | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b8232d98073..0873acd70a2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | 2007-11-24 Glenn Morris <rgm@gnu.org> | 1 | 2007-11-24 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * calendar/appt.el: Remove leading `*' from defcustom doc-strings. | 3 | * calendar/appt.el: Remove leading `*' from defcustom doc-strings. |
| 4 | (appt-disp-window): Don't require electric. Remove | 4 | (appt-disp-window): Don't require electric. Simplify |
| 5 | minibuffer-avoidance code, since appt-select-lowest-window does that. | 5 | minibuffer-avoidance code. |
| 6 | (appt-select-lowest-window): Avoid minibuffer. | 6 | (appt-select-lowest-window): Avoid minibuffer. |
| 7 | 7 | ||
| 8 | * eshell/eshell.el: Remove leading `*' from defcustom doc-strings. | 8 | * eshell/eshell.el: Remove leading `*' from defcustom doc-strings. |
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el index 0c8b9b19188..c605cbef10d 100644 --- a/lisp/calendar/appt.el +++ b/lisp/calendar/appt.el | |||
| @@ -436,6 +436,11 @@ displayed in a window: | |||
| 436 | "Display appointment message APPT-MSG in a separate buffer. | 436 | "Display appointment message APPT-MSG in a separate buffer. |
| 437 | The appointment is due in MIN-TO-APP (a string) minutes. | 437 | The appointment is due in MIN-TO-APP (a string) minutes. |
| 438 | NEW-TIME is a string giving the date." | 438 | NEW-TIME is a string giving the date." |
| 439 | ;; Make sure we're not in the minibuffer before splitting the window. | ||
| 440 | ;; FIXME this seems needlessly complicated? | ||
| 441 | (when (minibufferp) | ||
| 442 | (other-window 1) | ||
| 443 | (and (minibufferp) (display-multi-frame-p) (other-frame 1))) | ||
| 439 | (let ((this-window (selected-window)) | 444 | (let ((this-window (selected-window)) |
| 440 | (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name)))) | 445 | (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name)))) |
| 441 | (if (cdr (assq 'unsplittable (frame-parameters))) | 446 | (if (cdr (assq 'unsplittable (frame-parameters))) |