Variable: switch-to-visible-buffer
switch-to-visible-buffer is a customizable variable defined in
window.el.gz.
This variable is obsolete since 27.1; use switch-to-prev-buffer-skip
instead.
Value
t
Documentation
If non-nil, allow switching to an already visible buffer.
If this variable is non-nil, switch-to-prev-buffer and
switch-to-next-buffer may switch to an already visible buffer.
If this variable is nil, switch-to-prev-buffer and
switch-to-next-buffer always try to avoid switching to a buffer
that is already visible in another window on the same frame.
This variable was added, or its default value changed, in Emacs 24.1.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defcustom switch-to-visible-buffer t
"If non-nil, allow switching to an already visible buffer.
If this variable is non-nil, `switch-to-prev-buffer' and
`switch-to-next-buffer' may switch to an already visible buffer.
If this variable is nil, `switch-to-prev-buffer' and
`switch-to-next-buffer' always try to avoid switching to a buffer
that is already visible in another window on the same frame."
:type 'boolean
:version "24.1"
:group 'windows)