Commit f22346fe authored by Mauro Aranda's avatar Mauro Aranda Committed by Lars Ingebrigtsen

With tooltip-mode disabled, don't unconditionally clear the echo area

* lisp/tooltip.el (tooltip-show-help-non-mode): Only clear the
echo area when the current message displayed is a tooltip message
(Bug#3192).
parent 72ad41c0
Pipeline #3157 failed with stage
in 90 minutes and 2 seconds
......@@ -365,7 +365,10 @@ It is also called if Tooltip mode is on, for text-only displays."
(let ((message-log-max nil))
(message "%s" tooltip-previous-message)
(setq tooltip-previous-message nil)))
(t
;; Only stop displaying the message when the current message is our own.
;; This has the advantage of not clearing the echo area when
;; running after an error message was displayed (Bug#3192).
((equal-including-properties tooltip-help-message (current-message))
(message nil)))))
(defun tooltip-show-help (msg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment