Variable: tab-line-tab-name-function

tab-line-tab-name-function is a customizable variable defined in tab-line.el.gz.

Value

tab-line-tab-name-buffer

Documentation

Function to get a tab name.

The function is called with one or two arguments: the buffer or another object whose tab's name is requested, and, optionally, the list of all tabs. The result of this function is cached using tab-line-cache-key-function.

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

Source Code

;; Defined in /usr/src/emacs/lisp/tab-line.el.gz
(defcustom tab-line-tab-name-function #'tab-line-tab-name-buffer
  "Function to get a tab name.
The function is called with one or two arguments: the buffer or
another object whose tab's name is requested, and, optionally,
the list of all tabs.  The result of this function is cached
using `tab-line-cache-key-function'."
  :type '(choice (const :tag "Buffer name"
                        tab-line-tab-name-buffer)
                 (const :tag "Truncated buffer name"
                        tab-line-tab-name-truncated-buffer)
                 (function :tag "Function"))
  :initialize 'custom-initialize-default
  :set (lambda (sym val)
         (set-default sym val)
         (tab-line-force-update t))
  :group 'tab-line
  :version "27.1")