Variable: tab-bar-tab-prevent-close-functions

tab-bar-tab-prevent-close-functions is a customizable variable defined in tab-bar.el.gz.

Value

nil

Documentation

List of functions to call to determine whether to close a tab.

The tab to be closed and a boolean indicating whether or not it is the only tab in the frame are supplied as arguments. If any function returns a non-nil value, the tab will not be closed.

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

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defcustom tab-bar-tab-prevent-close-functions nil
  "List of functions to call to determine whether to close a tab.
The tab to be closed and a boolean indicating whether or not it
is the only tab in the frame are supplied as arguments.  If any
function returns a non-nil value, the tab will not be closed."
  :type '(repeat function)
  :group 'tab-bar
  :version "27.1")