diff options
author | Martin Rudalics <rudalics@gmx.at> | 2008-11-05 16:45:19 +0000 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2008-11-05 16:45:19 +0000 |
commit | f417bc0a9ccfd22698c74799552c959ef3692191 (patch) | |
tree | 96e9b747594e3c67c1db530812d7c85bbe6cc6ae /lisp/window.el | |
parent | f1809341da745d72ba4981ee6f11d3925dac70b1 (diff) | |
download | emacs-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.el | 4 |
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)) |