aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/window.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el24
1 files changed, 21 insertions, 3 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 39f4fa139bb..a8b65657a49 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -4697,6 +4697,8 @@ displayed there."
4697BUFFER-OR-NAME may be a buffer or the name of an existing buffer 4697BUFFER-OR-NAME may be a buffer or the name of an existing buffer
4698and defaults to the current buffer. 4698and defaults to the current buffer.
4699 4699
4700Interactively, prompt for the buffer.
4701
4700The following non-nil values of the optional argument FRAME 4702The following non-nil values of the optional argument FRAME
4701have special meanings: 4703have special meanings:
4702 4704
@@ -4713,9 +4715,25 @@ have special meanings:
4713Any other value of FRAME means consider all windows on all 4715Any other value of FRAME means consider all windows on all
4714frames. 4716frames.
4715 4717
4716When a window showing BUFFER-OR-NAME is dedicated and the only 4718Interactively, FRAME is the prefix argument, so you can
4717window of its frame, that frame is deleted when there are other 4719use \\[universal-argument] 0 to specify all windows only on
4718frames left." 4720the current terminal's frames.
4721
4722If a frame's root window shows the buffer specified by
4723BUFFER-OR-NAME and is dedicated to that buffer and that frame
4724does not host the active minibuffer window and there is at least
4725one other frame on that frame's terminal, delete that frame.
4726Otherwise, do not delete a frame's root window if it shows the
4727buffer specified by BUFFER-OR-NAME and do not delete any frame's
4728main window showing that buffer either. Rather, in any such
4729case, call `switch-to-prev-buffer' to show another buffer in that
4730window and make sure the window is no more dedicated to its
4731buffer.
4732
4733If the buffer specified by BUFFER-OR-NAME is shown in a
4734minibuffer window, do nothing for that window. For any window
4735that does not show that buffer, remove the buffer from that
4736window's lists of previous and next buffers."
4719 (interactive "bDelete windows on (buffer):\nP") 4737 (interactive "bDelete windows on (buffer):\nP")
4720 (let ((buffer (window-normalize-buffer buffer-or-name)) 4738 (let ((buffer (window-normalize-buffer buffer-or-name))
4721 ;; Handle the "inverted" meaning of the FRAME argument wrt other 4739 ;; Handle the "inverted" meaning of the FRAME argument wrt other