Function: tab-bar-tab-name-format-truncated
tab-bar-tab-name-format-truncated is a byte-compiled function defined
in tab-bar.el.gz.
Signature
(tab-bar-tab-name-format-truncated NAME TAB I)
Documentation
Truncate the tab name.
The maximal length is specified by tab-bar-tab-name-truncated-max.
Append ellipsis tab-bar-tab-name-ellipsis at the end.
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar-tab-name-format-truncated (name _tab _i)
"Truncate the tab name.
The maximal length is specified by `tab-bar-tab-name-truncated-max'.
Append ellipsis `tab-bar-tab-name-ellipsis' at the end."
(if (< (length name) tab-bar-tab-name-truncated-max)
name
(truncate-string-to-width
name tab-bar-tab-name-truncated-max nil nil
tab-bar-tab-name-ellipsis)))