aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-03-16 02:42:45 +0000
committerChong Yidong2009-03-16 02:42:45 +0000
commit9bec41deccf2b08bcd81d0daa8c787b6b5a822f8 (patch)
treed0801d923cc598f0dca8bc3cf9351e264d309db9
parent17bc3e84b4cbeb34783ea445b72c2ef30110b6e9 (diff)
downloademacs-9bec41deccf2b08bcd81d0daa8c787b6b5a822f8.tar.gz
emacs-9bec41deccf2b08bcd81d0daa8c787b6b5a822f8.zip
(tooltip-show-help-non-mode): Don't set tooltip-previous-message if
called with the same tooltip that is showing (Bug#2680).
-rw-r--r--lisp/tooltip.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 41a50b442ea..b7883a02049 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -333,11 +333,13 @@ the buffer of PROCESS."
333 (not cursor-in-echo-area)) ;Don't overwrite a prompt. 333 (not cursor-in-echo-area)) ;Don't overwrite a prompt.
334 (cond 334 (cond
335 ((stringp help) 335 ((stringp help)
336 (unless tooltip-previous-message 336 (setq help (replace-regexp-in-string "\n" ", " help))
337 (unless (or tooltip-previous-message
338 (string-equal help (current-message)))
337 (setq tooltip-previous-message (current-message))) 339 (setq tooltip-previous-message (current-message)))
338 (let ((message-truncate-lines t) 340 (let ((message-truncate-lines t)
339 (message-log-max nil)) 341 (message-log-max nil))
340 (message "%s" (replace-regexp-in-string "\n" ", " help)))) 342 (message "%s" help)))
341 ((stringp tooltip-previous-message) 343 ((stringp tooltip-previous-message)
342 (let ((message-log-max nil)) 344 (let ((message-log-max nil))
343 (message "%s" tooltip-previous-message) 345 (message "%s" tooltip-previous-message)