summaryrefslogtreecommitdiff
path: root/lisp/tooltip.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2005-12-20 21:42:19 +0000
committerJuri Linkov <juri@jurta.org>2005-12-20 21:42:19 +0000
commite3947513dc3f48f5efd34a2577b8d9244ef992c0 (patch)
treee0834a1176bbbef0bab416ed32510b96bddce199 /lisp/tooltip.el
parent55d42133d454b6c2d4032513fc5ee529e8fa4162 (diff)
downloademacs-e3947513dc3f48f5efd34a2577b8d9244ef992c0.tar.gz
emacs-e3947513dc3f48f5efd34a2577b8d9244ef992c0.tar.bz2
emacs-e3947513dc3f48f5efd34a2577b8d9244ef992c0.zip
(tooltip): Move defgroup before define-minor-mode.
(tooltip-x-offset, tooltip-y-offset): Doc fix.
Diffstat (limited to 'lisp/tooltip.el')
-rw-r--r--lisp/tooltip.el34
1 files changed, 19 insertions, 15 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 8f609601822..e88bc6017ce 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -29,7 +29,15 @@
(defvar comint-prompt-regexp)
-;;; Customizable settings
+(defgroup tooltip nil
+ "Customization group for the `tooltip' package."
+ :group 'help
+ :group 'gud
+ :group 'mouse
+ :group 'tools
+ :version "21.1"
+ :tag "Tool Tips")
+
;;; Switching tooltips on/off
;; We don't set track-mouse globally because this is a big redisplay
@@ -60,14 +68,8 @@ With ARG, turn tooltip mode on if and only if ARG is positive."
(setq show-help-function
(if tooltip-mode 'tooltip-show-help nil)))
-(defgroup tooltip nil
- "Customization group for the `tooltip' package."
- :group 'help
- :group 'gud
- :group 'mouse
- :group 'tools
- :version "21.1"
- :tag "Tool Tips")
+
+;;; Customizable settings
(defcustom tooltip-delay 0.7
"Seconds to wait before displaying a tooltip the first time."
@@ -92,9 +94,10 @@ Do so after `tooltip-short-delay'."
(defcustom tooltip-x-offset 5
"X offset, in pixels, for the display of tooltips.
-The offset is relative to the position of the mouse. It must
-be chosen so that the tooltip window doesn't contain the mouse
-when it pops up.
+The offset is the distance between the X position of the mouse and
+the left border of the tooltip window. It must be chosen so that the
+tooltip window doesn't contain the mouse when it pops up, or it may
+interfere with clicking where you wish.
If `tooltip-frame-parameters' includes the `left' parameter,
the value of `tooltip-x-offset' is ignored."
@@ -103,9 +106,10 @@ the value of `tooltip-x-offset' is ignored."
(defcustom tooltip-y-offset +20
"Y offset, in pixels, for the display of tooltips.
-The offset is relative to the position of the mouse. It must
-be chosen so that the tooltip window doesn't contain the mouse
-when it pops up.
+The offset is the distance between the Y position of the mouse and
+the top border of the tooltip window. It must be chosen so that the
+tooltip window doesn't contain the mouse when it pops up, or it may
+interfere with clicking where you wish.
If `tooltip-frame-parameters' includes the `top' parameter,
the value of `tooltip-y-offset' is ignored."