Function: tab-bar-tab-name-truncated
tab-bar-tab-name-truncated is a byte-compiled function defined in
tab-bar.el.gz.
Signature
(tab-bar-tab-name-truncated)
Documentation
Generate tab name from the buffer of the selected window.
Truncate it to the length specified by tab-bar-tab-name-truncated-max.
Append ellipsis tab-bar-tab-name-ellipsis in this case.
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar-tab-name-truncated ()
"Generate tab name from the buffer of the selected window.
Truncate it to the length specified by `tab-bar-tab-name-truncated-max'.
Append ellipsis `tab-bar-tab-name-ellipsis' in this case."
(let ((tab-name (tab-bar-tab-name-current)))
(if (< (length tab-name) tab-bar-tab-name-truncated-max)
tab-name
(propertize (truncate-string-to-width
tab-name tab-bar-tab-name-truncated-max nil nil
tab-bar-tab-name-ellipsis)
'help-echo tab-name))))