diff options
| author | Troels Nielsen | 2012-05-29 20:22:49 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-05-29 20:22:49 +0800 |
| commit | 46b7967e4d98570501f5e75ba7460fa4c79e4617 (patch) | |
| tree | 0bac097c938710f8d5efb38fade1c2ec6d25cae6 /lisp | |
| parent | 69d565e2c2508ccc707ce08bcdfebd3e65615c37 (diff) | |
| download | emacs-46b7967e4d98570501f5e75ba7460fa4c79e4617.tar.gz emacs-46b7967e4d98570501f5e75ba7460fa4c79e4617.zip | |
Fix active minibuffer case for window-deletable-p.
* window.el (window-deletable-p): Avoid deleting the root window
of a frame with an active minibuffer.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/window.el | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a98bdda3526..fbb398335d8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-05-29 Troels Nielsen <bn.troels@gmail.com> | ||
| 2 | |||
| 3 | * window.el (window-deletable-p): Avoid deleting the root window | ||
| 4 | of a frame with an active minibuffer. | ||
| 5 | |||
| 1 | 2012-05-29 Martin Rudalics <rudalics@gmx.at> | 6 | 2012-05-29 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * simple.el (choose-completion): Use quit-window (Bug#11567). | 8 | * simple.el (choose-completion): Use quit-window (Bug#11567). |
diff --git a/lisp/window.el b/lisp/window.el index a650c5602ba..52b0a31e241 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -2370,8 +2370,11 @@ frame." | |||
| 2370 | (cond | 2370 | (cond |
| 2371 | ((frame-root-window-p window) | 2371 | ((frame-root-window-p window) |
| 2372 | ;; WINDOW's frame can be deleted only if there are other frames | 2372 | ;; WINDOW's frame can be deleted only if there are other frames |
| 2373 | ;; on the same terminal. | 2373 | ;; on the same terminal, and it does not contain the active |
| 2374 | (unless (eq frame (next-frame frame 0)) | 2374 | ;; minibuffer. |
| 2375 | (unless (or (eq frame (next-frame frame 0)) | ||
| 2376 | (let ((minibuf (active-minibuffer-window))) | ||
| 2377 | (and minibuf (eq frame (window-frame minibuf))))) | ||
| 2375 | 'frame)) | 2378 | 'frame)) |
| 2376 | ((or ignore-window-parameters | 2379 | ((or ignore-window-parameters |
| 2377 | (not (eq (window-parameter window 'window-side) 'none)) | 2380 | (not (eq (window-parameter window 'window-side) 'none)) |