aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/tooltip.el
diff options
context:
space:
mode:
authorRichard M. Stallman2005-10-23 18:31:25 +0000
committerRichard M. Stallman2005-10-23 18:31:25 +0000
commit5fddd8e6dd07eb5338debdb93e5e22909735cd02 (patch)
treeb397b5634401cdd05939c30d4b9cb5a0e085108d /lisp/tooltip.el
parent220602e9d365e389e4b8d80c1904ccbc04e71e04 (diff)
downloademacs-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.el18
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.
70The offset is relative to the position of the mouse. It must 70The offset is relative to the position of the mouse. It must
71be chosen so that the tooltip window doesn't contain the mouse 71be chosen so that the tooltip window doesn't contain the mouse
72when it pops up. If the value is nil, the default offset is 5 72when it pops up.
73pixels.
74 73
75If `tooltip-frame-parameters' includes the `left' parameter, 74If `tooltip-frame-parameters' includes the `left' parameter,
76the value of `tooltip-x-offset' is ignored." 75the 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.
84The offset is relative to the position of the mouse. It must 82The offset is relative to the position of the mouse. It must
85be chosen so that the tooltip window doesn't contain the mouse 83be chosen so that the tooltip window doesn't contain the mouse
86when it pops up. If the value is nil, the default offset is -10 84when it pops up.
87pixels.
88 85
89If `tooltip-frame-parameters' includes the `top' parameter, 86If `tooltip-frame-parameters' includes the `top' parameter,
90the value of `tooltip-y-offset' is ignored." 87the 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