aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-12-20 21:42:19 +0000
committerJuri Linkov2005-12-20 21:42:19 +0000
commite3947513dc3f48f5efd34a2577b8d9244ef992c0 (patch)
treee0834a1176bbbef0bab416ed32510b96bddce199
parent55d42133d454b6c2d4032513fc5ee529e8fa4162 (diff)
downloademacs-e3947513dc3f48f5efd34a2577b8d9244ef992c0.tar.gz
emacs-e3947513dc3f48f5efd34a2577b8d9244ef992c0.zip
(tooltip): Move defgroup before define-minor-mode.
(tooltip-x-offset, tooltip-y-offset): Doc fix.
-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 @@
29 29
30(defvar comint-prompt-regexp) 30(defvar comint-prompt-regexp)
31 31
32;;; Customizable settings 32(defgroup tooltip nil
33 "Customization group for the `tooltip' package."
34 :group 'help
35 :group 'gud
36 :group 'mouse
37 :group 'tools
38 :version "21.1"
39 :tag "Tool Tips")
40
33;;; Switching tooltips on/off 41;;; Switching tooltips on/off
34 42
35;; We don't set track-mouse globally because this is a big redisplay 43;; 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."
60 (setq show-help-function 68 (setq show-help-function
61 (if tooltip-mode 'tooltip-show-help nil))) 69 (if tooltip-mode 'tooltip-show-help nil)))
62 70
63(defgroup tooltip nil 71
64 "Customization group for the `tooltip' package." 72;;; Customizable settings
65 :group 'help
66 :group 'gud
67 :group 'mouse
68 :group 'tools
69 :version "21.1"
70 :tag "Tool Tips")
71 73
72(defcustom tooltip-delay 0.7 74(defcustom tooltip-delay 0.7
73 "Seconds to wait before displaying a tooltip the first time." 75 "Seconds to wait before displaying a tooltip the first time."
@@ -92,9 +94,10 @@ Do so after `tooltip-short-delay'."
92 94
93(defcustom tooltip-x-offset 5 95(defcustom tooltip-x-offset 5
94 "X offset, in pixels, for the display of tooltips. 96 "X offset, in pixels, for the display of tooltips.
95The offset is relative to the position of the mouse. It must 97The offset is the distance between the X position of the mouse and
96be chosen so that the tooltip window doesn't contain the mouse 98the left border of the tooltip window. It must be chosen so that the
97when it pops up. 99tooltip window doesn't contain the mouse when it pops up, or it may
100interfere with clicking where you wish.
98 101
99If `tooltip-frame-parameters' includes the `left' parameter, 102If `tooltip-frame-parameters' includes the `left' parameter,
100the value of `tooltip-x-offset' is ignored." 103the value of `tooltip-x-offset' is ignored."
@@ -103,9 +106,10 @@ the value of `tooltip-x-offset' is ignored."
103 106
104(defcustom tooltip-y-offset +20 107(defcustom tooltip-y-offset +20
105 "Y offset, in pixels, for the display of tooltips. 108 "Y offset, in pixels, for the display of tooltips.
106The offset is relative to the position of the mouse. It must 109The offset is the distance between the Y position of the mouse and
107be chosen so that the tooltip window doesn't contain the mouse 110the top border of the tooltip window. It must be chosen so that the
108when it pops up. 111tooltip window doesn't contain the mouse when it pops up, or it may
112interfere with clicking where you wish.
109 113
110If `tooltip-frame-parameters' includes the `top' parameter, 114If `tooltip-frame-parameters' includes the `top' parameter,
111the value of `tooltip-y-offset' is ignored." 115the value of `tooltip-y-offset' is ignored."