aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-09-02 23:27:32 +0300
committerJuri Linkov2019-09-02 23:27:32 +0300
commitf458ca28cb12de302de774b5bc9b43ad474745e5 (patch)
treef96409f49ce9edea3c51193fc6d72bfc80107074
parent5bf45ec48b781a1165e882e7216892bf201d15f4 (diff)
downloademacs-f458ca28cb12de302de774b5bc9b43ad474745e5.tar.gz
emacs-f458ca28cb12de302de774b5bc9b43ad474745e5.zip
* lisp/tab-line.el: Display truncated tab name in the tooltip.
-rw-r--r--lisp/tab-line.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/tab-line.el b/lisp/tab-line.el
index addd0459c95..235cff19d97 100644
--- a/lisp/tab-line.el
+++ b/lisp/tab-line.el
@@ -126,7 +126,9 @@ Reduce tab width proportionally to space taken by other tabs."
126 (max 1 (- (/ (window-width) (length buffers)) 3))))) 126 (max 1 (- (/ (window-width) (length buffers)) 3)))))
127 (if (or (not limit) (< (length tab-name) limit)) 127 (if (or (not limit) (< (length tab-name) limit))
128 tab-name 128 tab-name
129 (concat tab-line-tab-name-ellipsis (substring tab-name (- limit)))))) 129 (propertize (concat tab-line-tab-name-ellipsis
130 (substring tab-name (- limit)))
131 'help-echo tab-name))))
130 132
131(defun tab-line-format () 133(defun tab-line-format ()
132 "Template for displaying tab line for selected window." 134 "Template for displaying tab line for selected window."
@@ -149,7 +151,6 @@ Reduce tab width proportionally to space taken by other tabs."
149 tab-line-separator 151 tab-line-separator
150 (apply 'propertize (tab-line-tab-name b buffers) 152 (apply 'propertize (tab-line-tab-name b buffers)
151 `( 153 `(
152 help-echo "Click to visit tab"
153 buffer ,b 154 buffer ,b
154 face ,(if (eq b buffer) 155 face ,(if (eq b buffer)
155 'tab-line-tab 156 'tab-line-tab