]> git.eshelyaron.com Git - emacs.git/commitdiff
* tooltip.el (tooltip-use-echo-area): New user variable.
authorSam Steingold <sds@gnu.org>
Thu, 12 Oct 2000 17:02:19 +0000 (17:02 +0000)
committerSam Steingold <sds@gnu.org>
Thu, 12 Oct 2000 17:02:19 +0000 (17:02 +0000)
(tooltip-show): Use it to choose between `x-show-tip' and `message'.

lisp/ChangeLog
lisp/tooltip.el

index 7f0978549a0d18068fbf71f28c4fdd2b7b2bca8c..6e81cfb6b463e6174b7ccc0691abfd7cc550cfb1 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-12  Sam Steingold  <sds@gnu.org>
+
+       * tooltip.el (tooltip-use-echo-area): New user variable.
+       (tooltip-show): Use it to choose between `x-show-tip' and `message'.
+
 2000-10-12  Dave Love  <fx@gnu.org>
 
        * recentf.el: Maintainer's checkdoc fixes.
index a7484dc7fd50e695976625b452c49246b7ce5513..5950ff39308c624806762309f0b005eede4b55d3 100644 (file)
@@ -115,6 +115,12 @@ only tooltips in the buffer containing the overlay arrow."
   :group 'tooltip)
 
 
+(defcustom tooltip-use-echo-area nil
+  "Use the echo area instead of the actual tooltip windows."
+  :type 'boolean
+  :tag "use echo area"
+  :group 'tooltip)
+
 \f
 ;;; Variables that are not customizable.
 
@@ -271,8 +277,9 @@ ACTIVATEP non-nil means activate mouse motion events."
 
 (defun tooltip-show (text)
   "Show a tooltip window at the current mouse position displaying TEXT."
-  (x-show-tip text (selected-frame) tooltip-frame-parameters))
-
+  (if tooltip-use-echo-area
+      (message "%s" text)
+      (x-show-tip text (selected-frame) tooltip-frame-parameters)))
 
 (defun tooltip-hide (&optional ignored-arg)
   "Hide a tooltip, if one is displayed.