diff options
| author | Richard M. Stallman | 2005-10-23 18:31:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-10-23 18:31:25 +0000 |
| commit | 5fddd8e6dd07eb5338debdb93e5e22909735cd02 (patch) | |
| tree | b397b5634401cdd05939c30d4b9cb5a0e085108d /lisp/tooltip.el | |
| parent | 220602e9d365e389e4b8d80c1904ccbc04e71e04 (diff) | |
| download | emacs-5fddd8e6dd07eb5338debdb93e5e22909735cd02.tar.gz emacs-5fddd8e6dd07eb5338debdb93e5e22909735cd02.zip | |
(tooltip-x-offset, tooltip-y-offset): Change defaults.
Eliminate nil as possible value.
(tooltip-hide-delay): Reduce internal-border-width.
Diffstat (limited to 'lisp/tooltip.el')
| -rw-r--r-- | lisp/tooltip.el | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el index 1bbdd6d37a0..50715cf800c 100644 --- a/lisp/tooltip.el +++ b/lisp/tooltip.el | |||
| @@ -65,37 +65,33 @@ Do so after `tooltip-short-delay'." | |||
| 65 | :type 'number | 65 | :type 'number |
| 66 | :group 'tooltip) | 66 | :group 'tooltip) |
| 67 | 67 | ||
| 68 | (defcustom tooltip-x-offset nil | 68 | (defcustom tooltip-x-offset 5 |
| 69 | "X offset, in pixels, for the display of tooltips. | 69 | "X offset, in pixels, for the display of tooltips. |
| 70 | The offset is relative to the position of the mouse. It must | 70 | The offset is relative to the position of the mouse. It must |
| 71 | be chosen so that the tooltip window doesn't contain the mouse | 71 | be chosen so that the tooltip window doesn't contain the mouse |
| 72 | when it pops up. If the value is nil, the default offset is 5 | 72 | when it pops up. |
| 73 | pixels. | ||
| 74 | 73 | ||
| 75 | If `tooltip-frame-parameters' includes the `left' parameter, | 74 | If `tooltip-frame-parameters' includes the `left' parameter, |
| 76 | the value of `tooltip-x-offset' is ignored." | 75 | the value of `tooltip-x-offset' is ignored." |
| 77 | :tag "X offset" | 76 | :tag "X offset" |
| 78 | :type '(choice (const :tag "Default" nil) | 77 | :type 'integer |
| 79 | (integer :tag "Offset" :value 1)) | ||
| 80 | :group 'tooltip) | 78 | :group 'tooltip) |
| 81 | 79 | ||
| 82 | (defcustom tooltip-y-offset nil | 80 | (defcustom tooltip-y-offset +40 |
| 83 | "Y offset, in pixels, for the display of tooltips. | 81 | "Y offset, in pixels, for the display of tooltips. |
| 84 | The offset is relative to the position of the mouse. It must | 82 | The offset is relative to the position of the mouse. It must |
| 85 | be chosen so that the tooltip window doesn't contain the mouse | 83 | be chosen so that the tooltip window doesn't contain the mouse |
| 86 | when it pops up. If the value is nil, the default offset is -10 | 84 | when it pops up. |
| 87 | pixels. | ||
| 88 | 85 | ||
| 89 | If `tooltip-frame-parameters' includes the `top' parameter, | 86 | If `tooltip-frame-parameters' includes the `top' parameter, |
| 90 | the value of `tooltip-y-offset' is ignored." | 87 | the value of `tooltip-y-offset' is ignored." |
| 91 | :tag "Y offset" | 88 | :tag "Y offset" |
| 92 | :type '(choice (const :tag "Default" nil) | 89 | :type 'integer |
| 93 | (integer :tag "Offset" :value 1)) | ||
| 94 | :group 'tooltip) | 90 | :group 'tooltip) |
| 95 | 91 | ||
| 96 | (defcustom tooltip-frame-parameters | 92 | (defcustom tooltip-frame-parameters |
| 97 | '((name . "tooltip") | 93 | '((name . "tooltip") |
| 98 | (internal-border-width . 5) | 94 | (internal-border-width . 2) |
| 99 | (border-width . 1)) | 95 | (border-width . 1)) |
| 100 | "Frame parameters used for tooltips. | 96 | "Frame parameters used for tooltips. |
| 101 | 97 | ||