Skip to content

Commit 9a53450

Browse files
committed
switch-to-buffer-other-frame doc string improvement
* lisp/window.el (switch-to-buffer-other-frame): Document that we don't always display the buffer in a different frame (bug#17719).
1 parent 6ff7263 commit 9a53450

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lisp/window.el

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8733,6 +8733,13 @@ documentation for additional customization information."
87338733
BUFFER-OR-NAME may be a buffer, a string (a buffer name), or
87348734
nil. Return the buffer switched to.
87358735

8736+
This uses the function `display-buffer' as a subroutine to
8737+
display the buffer; see its documentation for additional
8738+
customization information. By default, if the buffer is already
8739+
displayed (even in the current frame), that window is selected.
8740+
If the buffer isn't displayed in any frame, a new frame is popped
8741+
up and the buffer is displayed there.
8742+
87368743
If called interactively, read the buffer name using `read-buffer'.
87378744
The variable `confirm-nonexistent-file-or-buffer' determines
87388745
whether to request confirmation before creating a new buffer.
@@ -8744,10 +8751,7 @@ buffer, create a new buffer with that name. If BUFFER-OR-NAME is
87448751
nil, switch to the buffer returned by `other-buffer'.
87458752

87468753
Optional second arg NORECORD non-nil means do not put this
8747-
buffer at the front of the list of recently selected ones.
8748-
8749-
This uses the function `display-buffer' as a subroutine; see its
8750-
documentation for additional customization information."
8754+
buffer at the front of the list of recently selected ones."
87518755
(interactive
87528756
(list (read-buffer-to-switch "Switch to buffer in other frame: ")))
87538757
(pop-to-buffer buffer-or-name display-buffer--other-frame-action norecord))

0 commit comments

Comments
 (0)