diff options
| author | Chong Yidong | 2009-03-16 02:42:45 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-03-16 02:42:45 +0000 |
| commit | 9bec41deccf2b08bcd81d0daa8c787b6b5a822f8 (patch) | |
| tree | d0801d923cc598f0dca8bc3cf9351e264d309db9 | |
| parent | 17bc3e84b4cbeb34783ea445b72c2ef30110b6e9 (diff) | |
| download | emacs-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.el | 6 |
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) |