diff options
| author | Juri Linkov | 2005-12-20 21:42:19 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-12-20 21:42:19 +0000 |
| commit | e3947513dc3f48f5efd34a2577b8d9244ef992c0 (patch) | |
| tree | e0834a1176bbbef0bab416ed32510b96bddce199 | |
| parent | 55d42133d454b6c2d4032513fc5ee529e8fa4162 (diff) | |
| download | emacs-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.el | 34 |
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. |
| 95 | The offset is relative to the position of the mouse. It must | 97 | The offset is the distance between the X position of the mouse and |
| 96 | be chosen so that the tooltip window doesn't contain the mouse | 98 | the left border of the tooltip window. It must be chosen so that the |
| 97 | when it pops up. | 99 | tooltip window doesn't contain the mouse when it pops up, or it may |
| 100 | interfere with clicking where you wish. | ||
| 98 | 101 | ||
| 99 | If `tooltip-frame-parameters' includes the `left' parameter, | 102 | If `tooltip-frame-parameters' includes the `left' parameter, |
| 100 | the value of `tooltip-x-offset' is ignored." | 103 | the 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. |
| 106 | The offset is relative to the position of the mouse. It must | 109 | The offset is the distance between the Y position of the mouse and |
| 107 | be chosen so that the tooltip window doesn't contain the mouse | 110 | the top border of the tooltip window. It must be chosen so that the |
| 108 | when it pops up. | 111 | tooltip window doesn't contain the mouse when it pops up, or it may |
| 112 | interfere with clicking where you wish. | ||
| 109 | 113 | ||
| 110 | If `tooltip-frame-parameters' includes the `top' parameter, | 114 | If `tooltip-frame-parameters' includes the `top' parameter, |
| 111 | the value of `tooltip-y-offset' is ignored." | 115 | the value of `tooltip-y-offset' is ignored." |