aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2008-11-05 16:45:19 +0000
committerMartin Rudalics2008-11-05 16:45:19 +0000
commitf417bc0a9ccfd22698c74799552c959ef3692191 (patch)
tree96e9b747594e3c67c1db530812d7c85bbe6cc6ae
parentf1809341da745d72ba4981ee6f11d3925dac70b1 (diff)
downloademacs-f417bc0a9ccfd22698c74799552c959ef3692191.tar.gz
emacs-f417bc0a9ccfd22698c74799552c959ef3692191.zip
(quit-window): Restore prefix argument behavior
removed in 2008-10-30 change. (Bug#1308)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/window.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2a0e4461c57..ed796fe93f5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-11-05 Martin Rudalics <rudalics@gmx.at>
2
3 * window.el (quit-window): Restore prefix argument behavior
4 removed in 2008-10-30 change. (Bug#1308)
5
12008-11-05 Tassilo Horn <tassilo@member.fsf.org> 62008-11-05 Tassilo Horn <tassilo@member.fsf.org>
2 7
3 * doc-view.el (doc-view-mode): Bugfix: Add conversion killing 8 * doc-view.el (doc-view-mode): Bugfix: Add conversion killing
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."
1420 1420
1421(defun quit-window (&optional kill window) 1421(defun quit-window (&optional kill window)
1422 "Bury or kill (with KILL non-nil) the buffer displayed in WINDOW. 1422 "Bury or kill (with KILL non-nil) the buffer displayed in WINDOW.
1423With a prefix argument, kill the buffer instead.
1424
1423KILL defaults to nil, WINDOW to the selected window. If WINDOW 1425KILL defaults to nil, WINDOW to the selected window. If WINDOW
1424is dedicated or a minibuffer window, delete it and, if it's the 1426is dedicated or a minibuffer window, delete it and, if it's the
1425only window on its frame, delete its frame as well provided there 1427only window on its frame, delete its frame as well provided there
1426are other frames left. Otherwise, display some other buffer in 1428are other frames left. Otherwise, display some other buffer in
1427the window." 1429the window."
1428 (interactive) 1430 (interactive "P")
1429 (let* ((window (or window (selected-window))) 1431 (let* ((window (or window (selected-window)))
1430 (buffer (window-buffer window))) 1432 (buffer (window-buffer window)))
1431 (if (or (window-minibuffer-p window) (window-dedicated-p window)) 1433 (if (or (window-minibuffer-p window) (window-dedicated-p window))