Mercurial > emacs
comparison lisp/tooltip.el @ 66348:834a001192cb
(tooltip-x-offset, tooltip-y-offset): Change defaults.
Eliminate nil as possible value.
(tooltip-hide-delay): Reduce internal-border-width.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 23 Oct 2005 18:31:25 +0000 |
parents | cd8e6d86c531 |
children | 2865d1195586 |
comparison
equal
deleted
inserted
replaced
66347:4eb490f3e33b | 66348:834a001192cb |
---|---|
63 "Hide tooltips automatically after this many seconds." | 63 "Hide tooltips automatically after this many seconds." |
64 :tag "Hide delay" | 64 :tag "Hide 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)) | 78 :group 'tooltip) |
80 :group 'tooltip) | 79 |
81 | 80 (defcustom tooltip-y-offset +40 |
82 (defcustom tooltip-y-offset nil | |
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 |
102 If `left' or `top' parameters are included, they specify the absolute | 98 If `left' or `top' parameters are included, they specify the absolute |
103 position to pop up the tooltip." | 99 position to pop up the tooltip." |