Variable: kill-buffer-quit-windows

kill-buffer-quit-windows is a customizable variable defined in window.el.gz.

Value

nil

Documentation

Non-nil means killing buffers shall quit windows.

If this is nil, killing a buffer may only delete windows dedicated to that buffer. Otherwise, kill-buffer has quit-restore-window deal with any window showing the buffer to be killed. That function may delete such a window even if it's not dedicated to its buffer. Also, delete-windows-on will use quit-restore-window as fallback when a window cannot be deleted otherwise.

This variable was added, or its default value changed, in Emacs 31.1.

View in manual

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defcustom kill-buffer-quit-windows nil
  "Non-nil means killing buffers shall quit windows.
If this is nil, killing a buffer may only delete windows dedicated to
that buffer.  Otherwise, `kill-buffer' has `quit-restore-window' deal
with any window showing the buffer to be killed.  That function may
delete such a window even if it's not dedicated to its buffer.  Also,
`delete-windows-on' will use `quit-restore-window' as fallback when a
window cannot be deleted otherwise."
  :type 'boolean
  :version "31.1"
  :group 'windows)