diff options
| author | Sam Steingold | 2000-10-12 17:02:19 +0000 |
|---|---|---|
| committer | Sam Steingold | 2000-10-12 17:02:19 +0000 |
| commit | 72200f8916f871e13e0b7cd8fc3885b72bea4ced (patch) | |
| tree | 7f943c87d87fe823385cee91a62ad219614643a7 | |
| parent | d0b40dc1c7aafc2c4930c6bcf864bf2d5015738f (diff) | |
| download | emacs-72200f8916f871e13e0b7cd8fc3885b72bea4ced.tar.gz emacs-72200f8916f871e13e0b7cd8fc3885b72bea4ced.zip | |
* tooltip.el (tooltip-use-echo-area): New user variable.
(tooltip-show): Use it to choose between `x-show-tip' and `message'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/tooltip.el | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7f0978549a0..6e81cfb6b46 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-10-12 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * tooltip.el (tooltip-use-echo-area): New user variable. | ||
| 4 | (tooltip-show): Use it to choose between `x-show-tip' and `message'. | ||
| 5 | |||
| 1 | 2000-10-12 Dave Love <fx@gnu.org> | 6 | 2000-10-12 Dave Love <fx@gnu.org> |
| 2 | 7 | ||
| 3 | * recentf.el: Maintainer's checkdoc fixes. | 8 | * recentf.el: Maintainer's checkdoc fixes. |
diff --git a/lisp/tooltip.el b/lisp/tooltip.el index a7484dc7fd5..5950ff39308 100644 --- a/lisp/tooltip.el +++ b/lisp/tooltip.el | |||
| @@ -115,6 +115,12 @@ only tooltips in the buffer containing the overlay arrow." | |||
| 115 | :group 'tooltip) | 115 | :group 'tooltip) |
| 116 | 116 | ||
| 117 | 117 | ||
| 118 | (defcustom tooltip-use-echo-area nil | ||
| 119 | "Use the echo area instead of the actual tooltip windows." | ||
| 120 | :type 'boolean | ||
| 121 | :tag "use echo area" | ||
| 122 | :group 'tooltip) | ||
| 123 | |||
| 118 | 124 | ||
| 119 | ;;; Variables that are not customizable. | 125 | ;;; Variables that are not customizable. |
| 120 | 126 | ||
| @@ -271,8 +277,9 @@ ACTIVATEP non-nil means activate mouse motion events." | |||
| 271 | 277 | ||
| 272 | (defun tooltip-show (text) | 278 | (defun tooltip-show (text) |
| 273 | "Show a tooltip window at the current mouse position displaying TEXT." | 279 | "Show a tooltip window at the current mouse position displaying TEXT." |
| 274 | (x-show-tip text (selected-frame) tooltip-frame-parameters)) | 280 | (if tooltip-use-echo-area |
| 275 | 281 | (message "%s" text) | |
| 282 | (x-show-tip text (selected-frame) tooltip-frame-parameters))) | ||
| 276 | 283 | ||
| 277 | (defun tooltip-hide (&optional ignored-arg) | 284 | (defun tooltip-hide (&optional ignored-arg) |
| 278 | "Hide a tooltip, if one is displayed. | 285 | "Hide a tooltip, if one is displayed. |