Variable: tab-bar-tab-pre-close-functions
tab-bar-tab-pre-close-functions is a customizable variable defined in
tab-bar.el.gz.
Value
nil
Documentation
List of functions to call before closing a tab.
Each function is called with two arguments: the tab to be closed and a boolean indicating whether or not it is the only tab on its frame.
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-pre-close-functions nil
"List of functions to call before closing a tab.
Each function is called with two arguments: the tab to be closed
and a boolean indicating whether or not it is the only tab on its frame."
:type '(repeat function)
:group 'tab-bar
:version "27.1")