+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
(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.