Variable: tab-line-tab-name-format-function
tab-line-tab-name-format-function is a customizable variable defined
in tab-line.el.gz.
Value
tab-line-tab-name-format-default
Documentation
Function to format a tab name.
The function will be called two arguments: the tab whose name to format,
and the list of all the tabs; it should return the formatted tab name
to display in the tab line.
The first argument could also be a different object, for example the buffer
which the tab will represent. The result of this function is cached
using tab-line-cache-key-function.
This variable was added, or its default value changed, in Emacs 28.1.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/tab-line.el.gz
(defcustom tab-line-tab-name-format-function #'tab-line-tab-name-format-default
"Function to format a tab name.
The function will be called two arguments: the tab whose name to format,
and the list of all the tabs; it should return the formatted tab name
to display in the tab line.
The first argument could also be a different object, for example the buffer
which the tab will represent. The result of this function is cached
using `tab-line-cache-key-function'."
:type 'function
:initialize 'custom-initialize-default
:set (lambda (sym val)
(set-default sym val)
(tab-line-force-update t))
:group 'tab-line
:version "28.1")