summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2008-11-05 16:45:19 +0000
committerMartin Rudalics <rudalics@gmx.at>2008-11-05 16:45:19 +0000
commitf417bc0a9ccfd22698c74799552c959ef3692191 (patch)
tree96e9b747594e3c67c1db530812d7c85bbe6cc6ae /lisp/window.el
parentf1809341da745d72ba4981ee6f11d3925dac70b1 (diff)
downloademacs-f417bc0a9ccfd22698c74799552c959ef3692191.tar.gz
(quit-window): Restore prefix argument behavior
removed in 2008-10-30 change. (Bug#1308)
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 56565a615e1..35b2789cb02 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -1420,12 +1420,14 @@ Return non-nil if the window was shrunk, nil otherwise."
(defun quit-window (&optional kill window)
"Bury or kill (with KILL non-nil) the buffer displayed in WINDOW.
+With a prefix argument, kill the buffer instead.
+
KILL defaults to nil, WINDOW to the selected window. If WINDOW
is dedicated or a minibuffer window, delete it and, if it's the
only window on its frame, delete its frame as well provided there
are other frames left. Otherwise, display some other buffer in
the window."
- (interactive)
+ (interactive "P")
(let* ((window (or window (selected-window)))
(buffer (window-buffer window)))
(if (or (window-minibuffer-p window) (window-dedicated-p window))