]> git.eshelyaron.com Git - emacs.git/commit
Allow optional truncation of tab names in tab-bar and tab-line (bug#38693)
authorJuri Linkov <juri@linkov.net>
Mon, 20 Jan 2020 23:03:37 +0000 (01:03 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 20 Jan 2020 23:03:37 +0000 (01:03 +0200)
commit3ba0db41e3fcfdc47368e9e6fd7cbe45230ba88b
treef6deb0eb40f22956805ffe1335d037220eb57a12
parent7dd065fc7bd561b09f79142974b8ada052dfa7d1
Allow optional truncation of tab names in tab-bar and tab-line (bug#38693)

* lisp/tab-line.el (tab-line-tab-name-truncated-max): New defcustom.
(tab-line-tab-name-truncated-buffer): Use tab-line-tab-name-truncated-max
consistently with similar options in tab-bar.el.
(tab-line-tabs-limit): Remove variable.
(tab-line-tabs-window-buffers): Remove use of tab-line-tabs-limit
that was an experimental feature before horizontal scrolling was implemented.
(tab-line-close-tab-function): Rename from tab-line-close-tab-action
and allow a customizaed function as option.
(tab-line-close-tab): Call function if tab-line-close-tab-function
is customized to a function.

* lisp/tab-bar.el (tab-bar-tab-name-function): Add option
tab-bar-tab-name-truncated.
(tab-bar-tab-name-truncated-max): New defcustom.
(tab-bar-tab-name-truncated-ellipsis): New variable.
(tab-bar-tab-name-truncated): New function.
lisp/tab-bar.el
lisp/tab-line.el