Variable: tab-bar-tab-name-function
tab-bar-tab-name-function is a customizable variable defined in
tab-bar.el.gz.
Value
tab-bar-tab-name-current
Documentation
Function to get a tab name.
Function gets no arguments. The choice is between displaying only the name of the current buffer in the tab name (default), or displaying the names of all buffers from all windows in the window configuration.
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-name-function #'tab-bar-tab-name-current
"Function to get a tab name.
Function gets no arguments.
The choice is between displaying only the name of the current buffer
in the tab name (default), or displaying the names of all buffers
from all windows in the window configuration."
:type '(choice (const :tag "Selected window buffer"
tab-bar-tab-name-current)
(const :tag "Selected window buffer with window count"
tab-bar-tab-name-current-with-count)
(const :tag "Truncated buffer name"
tab-bar-tab-name-truncated)
(const :tag "All window buffers"
tab-bar-tab-name-all)
(function :tag "Function"))
:initialize 'custom-initialize-default
:set (lambda (sym val)
(set-default sym val)
(force-mode-line-update))
:group 'tab-bar
:version "27.1")