aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-14 10:35:22 +0000
committerGerd Moellmann2000-12-14 10:35:22 +0000
commite56031492e42b2c6a7f2c6e35b0e5b717208ad2b (patch)
treeabf169e218b5e0420220f235b4c8cf86844a5d4e
parenta924cf63b23b1124f991f798a0e782ceb6fb9700 (diff)
downloademacs-e56031492e42b2c6a7f2c6e35b0e5b717208ad2b.tar.gz
emacs-e56031492e42b2c6a7f2c6e35b0e5b717208ad2b.zip
(tooltip-show): If an error is signaled in
x-show-tip, display that error, and display the help in the echo area.
-rw-r--r--lisp/tooltip.el18
1 files changed, 12 insertions, 6 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 9ad338418c2..dada23d0c2e 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -308,12 +308,18 @@ ACTIVATEP non-nil means activate mouse motion events."
308 "Show a tooltip window at the current mouse position displaying TEXT." 308 "Show a tooltip window at the current mouse position displaying TEXT."
309 (if tooltip-use-echo-area 309 (if tooltip-use-echo-area
310 (message "%s" text) 310 (message "%s" text)
311 (x-show-tip text 311 (condition-case error
312 (selected-frame) 312 (x-show-tip text
313 tooltip-frame-parameters 313 (selected-frame)
314 nil 314 tooltip-frame-parameters
315 tooltip-x-offset 315 nil
316 tooltip-y-offset))) 316 tooltip-x-offset
317 tooltip-y-offset)
318 (error
319 (message "Error while displaying tooltip: %s" error)
320 (sit-for 1)
321 (message "%s" text)))))
322
317 323
318(defun tooltip-hide (&optional ignored-arg) 324(defun tooltip-hide (&optional ignored-arg)
319 "Hide a tooltip, if one is displayed. 325 "Hide a tooltip, if one is displayed.