aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/tooltip.el8
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4286c378b88..60543c67f8c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-04-24 Eli Zaretskii <eliz@gnu.org>
2
3 * tooltip.el (tooltip-show-help-non-mode, tooltip-show-help): Use
4 equal-including-properties to compare help-echo strings. (Bug#17331)
5
12014-04-24 Leo Liu <sdl.web@gmail.com> 62014-04-24 Leo Liu <sdl.web@gmail.com>
2 7
3 * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table): 8 * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 059370f2eee..9d0954fc5dc 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -343,10 +343,10 @@ It is also called if Tooltip mode is on, for text-only displays."
343 ((stringp help) 343 ((stringp help)
344 (setq help (replace-regexp-in-string "\n" ", " help)) 344 (setq help (replace-regexp-in-string "\n" ", " help))
345 (unless (or tooltip-previous-message 345 (unless (or tooltip-previous-message
346 (string-equal help (current-message)) 346 (equal-including-properties help (current-message))
347 (and (stringp tooltip-help-message) 347 (and (stringp tooltip-help-message)
348 (string-equal tooltip-help-message 348 (equal-including-properties tooltip-help-message
349 (current-message)))) 349 (current-message))))
350 (setq tooltip-previous-message (current-message))) 350 (setq tooltip-previous-message (current-message)))
351 (setq tooltip-help-message help) 351 (setq tooltip-help-message help)
352 (let ((message-truncate-lines t) 352 (let ((message-truncate-lines t)
@@ -369,7 +369,7 @@ MSG is either a help string to display, or nil to cancel the display."
369 ;; Cancel display. This also cancels a delayed tip, if 369 ;; Cancel display. This also cancels a delayed tip, if
370 ;; there is one. 370 ;; there is one.
371 (tooltip-hide)) 371 (tooltip-hide))
372 ((equal previous-help msg) 372 ((equal-including-properties previous-help msg)
373 ;; Same help as before (but possibly the mouse has moved). 373 ;; Same help as before (but possibly the mouse has moved).
374 ;; Keep what we have. 374 ;; Keep what we have.
375 ) 375 )