Variable: switch-to-buffer-in-dedicated-window
switch-to-buffer-in-dedicated-window is a customizable variable
defined in window.el.gz.
Value
nil
Documentation
Allow switching to buffer in strongly dedicated windows.
If non-nil, allow switch-to-buffer to proceed when called
interactively and the selected window is strongly dedicated to
its buffer.
The following values are recognized:
nil - disallow switching; signal an error
prompt - prompt user whether to allow switching
pop - perform pop-to-buffer instead
t - undedicate selected window and switch
When called non-interactively, switch-to-buffer always signals
an error when the selected window is dedicated to its buffer and
FORCE-SAME-WINDOW is non-nil.
This variable was added, or its default value changed, in Emacs 25.1.
Probably introduced at or before Emacs version 25.1.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defcustom switch-to-buffer-in-dedicated-window nil
"Allow switching to buffer in strongly dedicated windows.
If non-nil, allow `switch-to-buffer' to proceed when called
interactively and the selected window is strongly dedicated to
its buffer.
The following values are recognized:
nil - disallow switching; signal an error
prompt - prompt user whether to allow switching
pop - perform `pop-to-buffer' instead
t - undedicate selected window and switch
When called non-interactively, `switch-to-buffer' always signals
an error when the selected window is dedicated to its buffer and
FORCE-SAME-WINDOW is non-nil."
:type '(choice
(const :tag "Disallow" nil)
(const :tag "Prompt" prompt)
(const :tag "Pop" pop)
(const :tag "Allow" t))
:group 'windows
:version "25.1")