]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/tab-line.el: Display truncated tab name in the tooltip.
authorJuri Linkov <juri@linkov.net>
Mon, 2 Sep 2019 20:27:32 +0000 (23:27 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 2 Sep 2019 20:27:32 +0000 (23:27 +0300)
lisp/tab-line.el

index addd0459c958536a5be2c5ca52105cb04401a336..235cff19d97d36d104b217123ec645c4dd6b4f55 100644 (file)
@@ -126,7 +126,9 @@ Reduce tab width proportionally to space taken by other tabs."
                  (max 1 (- (/ (window-width) (length buffers)) 3)))))
     (if (or (not limit) (< (length tab-name) limit))
         tab-name
-      (concat tab-line-tab-name-ellipsis (substring tab-name (- limit))))))
+      (propertize (concat tab-line-tab-name-ellipsis
+                          (substring tab-name (- limit)))
+                  'help-echo tab-name))))
 
 (defun tab-line-format ()
   "Template for displaying tab line for selected window."
@@ -149,7 +151,6 @@ Reduce tab width proportionally to space taken by other tabs."
                 tab-line-separator
                 (apply 'propertize (tab-line-tab-name b buffers)
                        `(
-                         help-echo "Click to visit tab"
                          buffer ,b
                          face ,(if (eq b buffer)
                                    'tab-line-tab