* emacs-lisp/tabulated-list.el (tabulated-list-print-col):
authorJonas Bernoulli <jonas@bernoul.li>
Sat, 16 Feb 2013 02:50:44 +0000 (18:50 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 16 Feb 2013 02:50:44 +0000 (18:50 -0800)
If col-desc already has help-echo, use it.

Fixes: debbugs:13563

lisp/ChangeLog
lisp/emacs-lisp/tabulated-list.el

index b932054..d9e6a3e 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-16  Jonas Bernoulli  <jonas@bernoul.li>
+
+       * emacs-lisp/tabulated-list.el (tabulated-list-print-col):
+       If col-desc already has help-echo, use it.  (Bug#13563)
+
 2013-02-16  Glenn Morris  <rgm@gnu.org>
 
        * image.el (image-current-frame): New variable.
index 94b3c15..da487e4 100644 (file)
@@ -379,7 +379,9 @@ Return the column number after insertion."
         (setq width (- width shift))
         (setq x (+ x shift))))
     (if (stringp col-desc)
-       (insert (propertize label 'help-echo help-echo))
+       (insert (if (get-text-property 0 'help-echo label)
+                   label
+                 (propertize label 'help-echo help-echo)))
       (apply 'insert-text-button label (cdr col-desc)))
     (let ((next-x (+ x pad-right width)))
       ;; No need to append any spaces if this is the last column.