Variable: same-window-buffer-names
same-window-buffer-names is a customizable variable defined in
window.el.gz.
Value
nil
Documentation
List of names of buffers that should appear in the "same" window.
display-buffer and pop-to-buffer show a buffer whose name is
on this list in the selected rather than some other window.
An element of this list can be a cons cell instead of just a
string. In that case, the cell's car must be a string specifying
the buffer name. This is for compatibility with
special-display-buffer-names; the cdr of the cons cell is
ignored.
This variable is provided for backward compatibility only and
should not be used in new code. Customize display-buffer-alist
instead. See Info node (elisp) Choosing Window Options in the
Emacs Lisp manual for an example.
See also same-window-regexps.
Probably introduced at or before Emacs version 19.29.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defcustom same-window-buffer-names nil
"List of names of buffers that should appear in the \"same\" window.
`display-buffer' and `pop-to-buffer' show a buffer whose name is
on this list in the selected rather than some other window.
An element of this list can be a cons cell instead of just a
string. In that case, the cell's car must be a string specifying
the buffer name. This is for compatibility with
`special-display-buffer-names'; the cdr of the cons cell is
ignored.
This variable is provided for backward compatibility only and
should not be used in new code. Customize `display-buffer-alist'
instead. See Info node `(elisp) Choosing Window Options' in the
Emacs Lisp manual for an example.
See also `same-window-regexps'."
:type '(repeat (string :format "%v"))
:group 'windows)