mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(quit-window): Bind window to selected window when
trying to delete it.
This commit is contained in:
parent
79f0fbcfd4
commit
a0c859f043
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2008-11-17 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* window.el (quit-window): Bind window to selected window when
|
||||
trying to delete it.
|
||||
|
||||
2008-11-17 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* progmodes/cc-defs.el (c-put-char-property-fun): Add fallback
|
||||
|
|
|
|||
|
|
@ -1437,7 +1437,8 @@ Otherwise, bury WINDOW's buffer, see `bury-buffer'."
|
|||
(window-dedicated-p window))
|
||||
;; WINDOW is either non-nil, a minibuffer window, or dedicated;
|
||||
;; try to delete it.
|
||||
(let ((frame (window-frame (or window (selected-window)))))
|
||||
(let* ((window (or window (selected-window)))
|
||||
(frame (window-frame window)))
|
||||
(if (eq window (frame-root-window frame))
|
||||
;; WINDOW is alone on its frame. `delete-windows-on'
|
||||
;; knows how to handle that case.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue