]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #17331 with display properties on help-echo strings.
authorEli Zaretskii <eliz@gnu.org>
Thu, 24 Apr 2014 15:02:56 +0000 (18:02 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 24 Apr 2014 15:02:56 +0000 (18:02 +0300)
 lisp/tooltip.el (tooltip-show-help-non-mode, tooltip-show-help): Use
 equal-including-properties to compare help-echo strings.

lisp/ChangeLog
lisp/tooltip.el

index 4286c378b88e2d389a0d9c343b8b11223e4d55cb..60543c67f8c43f83e9099037f3f9cd87ce27c8af 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-24  Eli Zaretskii  <eliz@gnu.org>
+
+       * tooltip.el (tooltip-show-help-non-mode, tooltip-show-help): Use
+       equal-including-properties to compare help-echo strings.  (Bug#17331)
+
 2014-04-24  Leo Liu  <sdl.web@gmail.com>
 
        * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
index 059370f2eeeb63a830e514d9305376c66e375e65..9d0954fc5dcab8e89ba445a01f1f72321d58cafb 100644 (file)
@@ -343,10 +343,10 @@ It is also called if Tooltip mode is on, for text-only displays."
      ((stringp help)
       (setq help (replace-regexp-in-string "\n" ", " help))
       (unless (or tooltip-previous-message
-                 (string-equal help (current-message))
+                 (equal-including-properties help (current-message))
                  (and (stringp tooltip-help-message)
-                      (string-equal tooltip-help-message
-                                    (current-message))))
+                      (equal-including-properties tooltip-help-message
+                                                  (current-message))))
         (setq tooltip-previous-message (current-message)))
       (setq tooltip-help-message help)
       (let ((message-truncate-lines t)
@@ -369,7 +369,7 @@ MSG is either a help string to display, or nil to cancel the display."
               ;; Cancel display.  This also cancels a delayed tip, if
               ;; there is one.
               (tooltip-hide))
-             ((equal previous-help msg)
+             ((equal-including-properties previous-help msg)
               ;; Same help as before (but possibly the mouse has moved).
               ;; Keep what we have.
               )