aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-04-30 17:38:34 +0200
committerLars Ingebrigtsen2022-04-30 17:38:34 +0200
commit655d2319bc50ee09d4acaf9ce90809f9476d8674 (patch)
tree3a4dd2fa72435c0167ee8518a220335b56fd3e62 /src
parent86b6a69f8614663172c64a3f51ffce39526e7ca9 (diff)
downloademacs-655d2319bc50ee09d4acaf9ce90809f9476d8674.tar.gz
emacs-655d2319bc50ee09d4acaf9ce90809f9476d8674.zip
Use x-show-tooltip-timeout in all the implementations
* src/haikufns.c (Fx_show_tip): Use the timeout variable. * src/pgtkfns.c (Fx_show_tip): Ditto. * src/w32fns.c (Fx_show_tip): Ditto. * src/xfns.c (Fx_show_tip): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/haikufns.c5
-rw-r--r--src/pgtkfns.c8
-rw-r--r--src/w32fns.c5
-rw-r--r--src/xfns.c3
4 files changed, 10 insertions, 11 deletions
diff --git a/src/haikufns.c b/src/haikufns.c
index fb79066b77f..f7c17567b18 100644
--- a/src/haikufns.c
+++ b/src/haikufns.c
@@ -2021,9 +2021,8 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0,
2021 f = decode_window_system_frame (frame); 2021 f = decode_window_system_frame (frame);
2022 2022
2023 if (NILP (timeout)) 2023 if (NILP (timeout))
2024 timeout = make_fixnum (5); 2024 timeout = Vx_show_tooltip_timeout;
2025 else 2025 CHECK_FIXNAT (timeout);
2026 CHECK_FIXNAT (timeout);
2027 2026
2028 if (NILP (dx)) 2027 if (NILP (dx))
2029 dx = make_fixnum (5); 2028 dx = make_fixnum (5);
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index d1a72804cfe..a0fcf70f31b 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -3092,7 +3092,8 @@ PARMS is an optional list of frame parameters which can be used to
3092change the tooltip's appearance. 3092change the tooltip's appearance.
3093 3093
3094Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil 3094Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil
3095means use the default timeout of 5 seconds. 3095means use the default timeout from the `x-show-tooltip-timeout'
3096variable.
3096 3097
3097If the list of frame parameters PARMS contains a `left' parameter, 3098If the list of frame parameters PARMS contains a `left' parameter,
3098display the tooltip at that x-position. If the list of frame parameters 3099display the tooltip at that x-position. If the list of frame parameters
@@ -3138,9 +3139,8 @@ Text larger than the specified size is clipped. */)
3138 return unbind_to (count, Qnil); 3139 return unbind_to (count, Qnil);
3139 3140
3140 if (NILP (timeout)) 3141 if (NILP (timeout))
3141 timeout = make_fixnum (5); 3142 timeout = Vx_show_tooltip_timeout;
3142 else 3143 CHECK_FIXNAT (timeout);
3143 CHECK_FIXNAT (timeout);
3144 3144
3145 if (NILP (dx)) 3145 if (NILP (dx))
3146 dx = make_fixnum (5); 3146 dx = make_fixnum (5);
diff --git a/src/w32fns.c b/src/w32fns.c
index ead1549d557..0f25c1a594a 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -7366,9 +7366,8 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0,
7366 decode_window_system_frame (frame); 7366 decode_window_system_frame (frame);
7367 7367
7368 if (NILP (timeout)) 7368 if (NILP (timeout))
7369 timeout = make_fixnum (5); 7369 timeout = Vx_show_tooltip_timeout;
7370 else 7370 CHECK_FIXNAT (timeout);
7371 CHECK_FIXNAT (timeout);
7372 7371
7373 if (NILP (dx)) 7372 if (NILP (dx))
7374 dx = make_fixnum (5); 7373 dx = make_fixnum (5);
diff --git a/src/xfns.c b/src/xfns.c
index 24c3c260228..8f17ee67cd0 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -8292,7 +8292,8 @@ PARMS is an optional list of frame parameters which can be used to
8292change the tooltip's appearance. 8292change the tooltip's appearance.
8293 8293
8294Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil 8294Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil
8295means use the default timeout from the `x-show-tooltip-timeout'. 8295means use the default timeout from the `x-show-tooltip-timeout'
8296variable.
8296 8297
8297If the list of frame parameters PARMS contains a `left' parameter, 8298If the list of frame parameters PARMS contains a `left' parameter,
8298display the tooltip at that x-position. If the list of frame parameters 8299display the tooltip at that x-position. If the list of frame parameters