diff options
| author | Stefan Kangas | 2025-04-17 07:56:55 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2025-04-17 07:57:53 +0200 |
| commit | 4fcba8456e897cc77d1825e696aacb446ce45405 (patch) | |
| tree | 048bbd4056fe79c1c42899402f04b6044d82f2a1 /src/pgtkfns.c | |
| parent | 79814379d646e507c1af8ab26e300ac43d036664 (diff) | |
| download | emacs-4fcba8456e897cc77d1825e696aacb446ce45405.tar.gz emacs-4fcba8456e897cc77d1825e696aacb446ce45405.zip | |
Delete duplicate docstrings in PGTK build
* src/pgtkfns.c (Fx_export_frames, Fx_create_frame)
(Fx_server_max_request_size, Fx_display_screens, Fx_display_mm_height)
(Fx_display_mm_width, Fx_display_backing_store, Fx_display_visual_class)
(Fx_display_save_under, Fx_open_connection, Fx_close_connection)
(Fx_display_list, Fxw_color_defined_p, Fxw_color_values)
(Fxw_display_color_p, Fx_display_grayscale_p, Fx_display_pixel_width)
(Fx_display_pixel_height, Fx_display_planes, Fx_display_color_cells)
(Fx_show_tip, Fx_hide_tip, Fx_file_dialog, Fx_select_font): Replace
duplicate docstrings with "SKIP" marker. See the comment in doc.c.
* src/xfns.c (Fx_server_max_request_size, Fx_display_screens)
(Fx_display_backing_store, Fx_display_visual_class, Fx_file_dialog):
Update docstrings with details about the PGTK build.
Diffstat (limited to 'src/pgtkfns.c')
| -rw-r--r-- | src/pgtkfns.c | 173 |
1 files changed, 24 insertions, 149 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c index 6231ef1cb48..e979b84d2e6 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c | |||
| @@ -879,15 +879,7 @@ pgtk_set_scroll_bar_background (struct frame *f, Lisp_Object new_value, | |||
| 879 | 879 | ||
| 880 | 880 | ||
| 881 | DEFUN ("x-export-frames", Fx_export_frames, Sx_export_frames, 0, 2, 0, | 881 | DEFUN ("x-export-frames", Fx_export_frames, Sx_export_frames, 0, 2, 0, |
| 882 | doc: /* Return image data of FRAMES in TYPE format. | 882 | doc: /* SKIP: real doc in xfns.c. */) |
| 883 | FRAMES should be nil (the selected frame), a frame, or a list of | ||
| 884 | frames (each of which corresponds to one page). Each frame should be | ||
| 885 | visible. Optional arg TYPE should be either `pdf' (default), `png', | ||
| 886 | `postscript', or `svg'. Supported types are determined by the | ||
| 887 | compile-time configuration of cairo. | ||
| 888 | |||
| 889 | Note: Text drawn with the `x' font backend is shown with hollow boxes | ||
| 890 | unless TYPE is `png'. */) | ||
| 891 | (Lisp_Object frames, Lisp_Object type) | 883 | (Lisp_Object frames, Lisp_Object type) |
| 892 | { | 884 | { |
| 893 | Lisp_Object rest, tmp; | 885 | Lisp_Object rest, tmp; |
| @@ -1178,14 +1170,7 @@ scale factor. */) | |||
| 1178 | } | 1170 | } |
| 1179 | 1171 | ||
| 1180 | DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, 1, 1, 0, | 1172 | DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, 1, 1, 0, |
| 1181 | doc: /* Make a new X window, which is called a "frame" in Emacs terms. | 1173 | doc: /* SKIP: real doc in xfns.c. */ ) |
| 1182 | Return an Emacs frame object. PARMS is an alist of frame parameters. | ||
| 1183 | If the parameters specify that the frame should not have a minibuffer, | ||
| 1184 | and do not specify a specific minibuffer window to use, then | ||
| 1185 | `default-minibuffer-frame' must be a frame whose minibuffer can be | ||
| 1186 | shared by the new frame. | ||
| 1187 | |||
| 1188 | This function is an internal primitive--use `make-frame' instead. */ ) | ||
| 1189 | (Lisp_Object parms) | 1174 | (Lisp_Object parms) |
| 1190 | { | 1175 | { |
| 1191 | struct frame *f; | 1176 | struct frame *f; |
| @@ -2003,7 +1988,7 @@ DEFUN ("pgtk-set-resource", Fpgtk_set_resource, Spgtk_set_resource, 2, 2, 0, | |||
| 2003 | 1988 | ||
| 2004 | 1989 | ||
| 2005 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, Sx_server_max_request_size, 0, 1, 0, | 1990 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, Sx_server_max_request_size, 0, 1, 0, |
| 2006 | doc: /* This function is a no-op. It is only present for completeness. */ ) | 1991 | doc: /* SKIP: real doc in xfns.c. */ ) |
| 2007 | (Lisp_Object terminal) | 1992 | (Lisp_Object terminal) |
| 2008 | { | 1993 | { |
| 2009 | check_pgtk_display_info (terminal); | 1994 | check_pgtk_display_info (terminal); |
| @@ -2014,13 +1999,7 @@ DEFUN ("x-server-max-request-size", Fx_server_max_request_size, Sx_server_max_re | |||
| 2014 | 1999 | ||
| 2015 | 2000 | ||
| 2016 | DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, | 2001 | DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, |
| 2017 | doc: /* Return the number of screens on the display server TERMINAL. | 2002 | doc: /* SKIP: real doc in xfns.c. */) |
| 2018 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2019 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2020 | If omitted or nil, that stands for the selected frame's display. | ||
| 2021 | |||
| 2022 | Note: "screen" here is not in X11's. For the number of physical monitors, | ||
| 2023 | use `(length \(display-monitor-attributes-list TERMINAL))' instead. */) | ||
| 2024 | (Lisp_Object terminal) | 2003 | (Lisp_Object terminal) |
| 2025 | { | 2004 | { |
| 2026 | check_pgtk_display_info (terminal); | 2005 | check_pgtk_display_info (terminal); |
| @@ -2029,14 +2008,7 @@ use `(length \(display-monitor-attributes-list TERMINAL))' instead. */) | |||
| 2029 | 2008 | ||
| 2030 | 2009 | ||
| 2031 | DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 0, 1, 0, | 2010 | DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 0, 1, 0, |
| 2032 | doc: /* Return the height in millimeters of the display TERMINAL. | 2011 | doc: /* SKIP: real doc in xfns.c. */) |
| 2033 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2034 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2035 | If omitted or nil, that stands for the selected frame's display. | ||
| 2036 | |||
| 2037 | On \"multi-monitor\" setups this refers to the height in millimeters for | ||
| 2038 | all physical monitors associated with TERMINAL. To get information | ||
| 2039 | for each physical monitor, use `display-monitor-attributes-list'. */) | ||
| 2040 | (Lisp_Object terminal) | 2012 | (Lisp_Object terminal) |
| 2041 | { | 2013 | { |
| 2042 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); | 2014 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); |
| @@ -2070,14 +2042,7 @@ for each physical monitor, use `display-monitor-attributes-list'. */) | |||
| 2070 | 2042 | ||
| 2071 | 2043 | ||
| 2072 | DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, | 2044 | DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, |
| 2073 | doc: /* Return the width in millimeters of the display TERMINAL. | 2045 | doc: /* SKIP: real doc in xfns.c. */) |
| 2074 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2075 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2076 | If omitted or nil, that stands for the selected frame's display. | ||
| 2077 | |||
| 2078 | On \"multi-monitor\" setups this refers to the width in millimeters for | ||
| 2079 | all physical monitors associated with TERMINAL. To get information | ||
| 2080 | for each physical monitor, use `display-monitor-attributes-list'. */) | ||
| 2081 | (Lisp_Object terminal) | 2046 | (Lisp_Object terminal) |
| 2082 | { | 2047 | { |
| 2083 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); | 2048 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); |
| @@ -2111,11 +2076,7 @@ for each physical monitor, use `display-monitor-attributes-list'. */) | |||
| 2111 | 2076 | ||
| 2112 | 2077 | ||
| 2113 | DEFUN ("x-display-backing-store", Fx_display_backing_store, Sx_display_backing_store, 0, 1, 0, | 2078 | DEFUN ("x-display-backing-store", Fx_display_backing_store, Sx_display_backing_store, 0, 1, 0, |
| 2114 | doc: /* Return an indication of whether the display TERMINAL does backing store. | 2079 | doc: /* SKIP: real doc in xfns.c. */) |
| 2115 | The value may be `buffered', `retained', or `non-retained'. | ||
| 2116 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2117 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2118 | If omitted or nil, that stands for the selected frame's display. */) | ||
| 2119 | (Lisp_Object terminal) | 2080 | (Lisp_Object terminal) |
| 2120 | { | 2081 | { |
| 2121 | check_pgtk_display_info (terminal); | 2082 | check_pgtk_display_info (terminal); |
| @@ -2124,15 +2085,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 2124 | 2085 | ||
| 2125 | 2086 | ||
| 2126 | DEFUN ("x-display-visual-class", Fx_display_visual_class, Sx_display_visual_class, 0, 1, 0, | 2087 | DEFUN ("x-display-visual-class", Fx_display_visual_class, Sx_display_visual_class, 0, 1, 0, |
| 2127 | doc: /* Return the visual class of the display TERMINAL. | 2088 | doc: /* SKIP: real doc in xfns.c. */) |
| 2128 | The value is one of the symbols `static-gray', `gray-scale', | ||
| 2129 | `static-color', `pseudo-color', `true-color', or `direct-color'. | ||
| 2130 | |||
| 2131 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2132 | TERMINAL should a terminal object, a frame or a display name (a string). | ||
| 2133 | If omitted or nil, that stands for the selected frame's display. | ||
| 2134 | |||
| 2135 | On PGTK, always return true-color. */) | ||
| 2136 | (Lisp_Object terminal) | 2089 | (Lisp_Object terminal) |
| 2137 | { | 2090 | { |
| 2138 | return Qtrue_color; | 2091 | return Qtrue_color; |
| @@ -2140,10 +2093,7 @@ On PGTK, always return true-color. */) | |||
| 2140 | 2093 | ||
| 2141 | 2094 | ||
| 2142 | DEFUN ("x-display-save-under", Fx_display_save_under, Sx_display_save_under, 0, 1, 0, | 2095 | DEFUN ("x-display-save-under", Fx_display_save_under, Sx_display_save_under, 0, 1, 0, |
| 2143 | doc: /* Return t if TERMINAL supports the save-under feature. | 2096 | doc: /* SKIP: real doc in xfns.c. */) |
| 2144 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2145 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2146 | If omitted or nil, that stands for the selected frame's display. */) | ||
| 2147 | (Lisp_Object terminal) | 2097 | (Lisp_Object terminal) |
| 2148 | { | 2098 | { |
| 2149 | check_pgtk_display_info (terminal); | 2099 | check_pgtk_display_info (terminal); |
| @@ -2152,11 +2102,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 2152 | 2102 | ||
| 2153 | 2103 | ||
| 2154 | DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection, 1, 3, 0, | 2104 | DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection, 1, 3, 0, |
| 2155 | doc: /* Open a connection to a display server. | 2105 | doc: /* SKIP: real doc in xfns.c. */) |
| 2156 | DISPLAY is the name of the display to connect to. | ||
| 2157 | Optional second arg XRM-STRING is a string of resources in xrdb format. | ||
| 2158 | If the optional third arg MUST-SUCCEED is non-nil, | ||
| 2159 | terminate Emacs if we can't open the connection. */) | ||
| 2160 | (Lisp_Object display, Lisp_Object resource_string, Lisp_Object must_succeed) | 2106 | (Lisp_Object display, Lisp_Object resource_string, Lisp_Object must_succeed) |
| 2161 | { | 2107 | { |
| 2162 | struct pgtk_display_info *dpyinfo; | 2108 | struct pgtk_display_info *dpyinfo; |
| @@ -2180,10 +2126,7 @@ terminate Emacs if we can't open the connection. */) | |||
| 2180 | 2126 | ||
| 2181 | 2127 | ||
| 2182 | DEFUN ("x-close-connection", Fx_close_connection, Sx_close_connection, 1, 1, 0, | 2128 | DEFUN ("x-close-connection", Fx_close_connection, Sx_close_connection, 1, 1, 0, |
| 2183 | doc: /* Close the connection to TERMINAL's display server. | 2129 | doc: /* SKIP: real doc in xfns.c. */) |
| 2184 | For TERMINAL, specify a terminal object, a frame or a display name (a | ||
| 2185 | string). If TERMINAL is nil, that stands for the selected frame's | ||
| 2186 | terminal. */) | ||
| 2187 | (Lisp_Object terminal) | 2130 | (Lisp_Object terminal) |
| 2188 | { | 2131 | { |
| 2189 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); | 2132 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); |
| @@ -2198,7 +2141,7 @@ terminal. */) | |||
| 2198 | 2141 | ||
| 2199 | 2142 | ||
| 2200 | DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, | 2143 | DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, |
| 2201 | doc: /* Return the list of display names that Emacs has connections to. */) | 2144 | doc: /* SKIP: real doc in xfns.c. */) |
| 2202 | (void) | 2145 | (void) |
| 2203 | { | 2146 | { |
| 2204 | Lisp_Object result = Qnil; | 2147 | Lisp_Object result = Qnil; |
| @@ -2306,7 +2249,7 @@ pgtk_get_focus_frame (struct frame *frame) | |||
| 2306 | } | 2249 | } |
| 2307 | 2250 | ||
| 2308 | DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, | 2251 | DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, |
| 2309 | doc: /* Internal function called by `color-defined-p', which see. */) | 2252 | doc: /* SKIP: real doc in xfns.c. */) |
| 2310 | (Lisp_Object color, Lisp_Object frame) | 2253 | (Lisp_Object color, Lisp_Object frame) |
| 2311 | { | 2254 | { |
| 2312 | Emacs_Color col; | 2255 | Emacs_Color col; |
| @@ -2322,7 +2265,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, | |||
| 2322 | 2265 | ||
| 2323 | 2266 | ||
| 2324 | DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | 2267 | DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, |
| 2325 | doc: /* Internal function called by `color-values', which see. */) | 2268 | doc: /* SKIP: real doc in xfns.c. */) |
| 2326 | (Lisp_Object color, Lisp_Object frame) | 2269 | (Lisp_Object color, Lisp_Object frame) |
| 2327 | { | 2270 | { |
| 2328 | Emacs_Color col; | 2271 | Emacs_Color col; |
| @@ -2337,7 +2280,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | |||
| 2337 | } | 2280 | } |
| 2338 | 2281 | ||
| 2339 | DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, | 2282 | DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, |
| 2340 | doc: /* Internal function called by `display-color-p', which see. */) | 2283 | doc: /* SKIP: real doc in xfns.c. */) |
| 2341 | (Lisp_Object terminal) | 2284 | (Lisp_Object terminal) |
| 2342 | { | 2285 | { |
| 2343 | check_pgtk_display_info (terminal); | 2286 | check_pgtk_display_info (terminal); |
| @@ -2345,25 +2288,14 @@ DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, | |||
| 2345 | } | 2288 | } |
| 2346 | 2289 | ||
| 2347 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, Sx_display_grayscale_p, 0, 1, 0, | 2290 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, Sx_display_grayscale_p, 0, 1, 0, |
| 2348 | doc: /* Return t if the display supports shades of gray. | 2291 | doc: /* SKIP: real doc in xfns.c. */) |
| 2349 | Note that color displays do support shades of gray. | ||
| 2350 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2351 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2352 | If omitted or nil, that stands for the selected frame's display. */) | ||
| 2353 | (Lisp_Object terminal) | 2292 | (Lisp_Object terminal) |
| 2354 | { | 2293 | { |
| 2355 | return Qnil; | 2294 | return Qnil; |
| 2356 | } | 2295 | } |
| 2357 | 2296 | ||
| 2358 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, 0, 1, 0, | 2297 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, 0, 1, 0, |
| 2359 | doc: /* Return the width in pixels of the display TERMINAL. | 2298 | doc: /* SKIP: real doc in xfns.c. */) |
| 2360 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2361 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2362 | If omitted or nil, that stands for the selected frame's display. | ||
| 2363 | |||
| 2364 | On \"multi-monitor\" setups this refers to the pixel width for all | ||
| 2365 | physical monitors associated with TERMINAL. To get information for | ||
| 2366 | each physical monitor, use `display-monitor-attributes-list'. */) | ||
| 2367 | (Lisp_Object terminal) | 2299 | (Lisp_Object terminal) |
| 2368 | { | 2300 | { |
| 2369 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); | 2301 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); |
| @@ -2401,14 +2333,7 @@ each physical monitor, use `display-monitor-attributes-list'. */) | |||
| 2401 | } | 2333 | } |
| 2402 | 2334 | ||
| 2403 | DEFUN ("x-display-pixel-height", Fx_display_pixel_height, Sx_display_pixel_height, 0, 1, 0, | 2335 | DEFUN ("x-display-pixel-height", Fx_display_pixel_height, Sx_display_pixel_height, 0, 1, 0, |
| 2404 | doc: /* Return the height in pixels of the display TERMINAL. | 2336 | doc: /* SKIP: real doc in xfns.c. */) |
| 2405 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2406 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2407 | If omitted or nil, that stands for the selected frame's display. | ||
| 2408 | |||
| 2409 | On \"multi-monitor\" setups this refers to the pixel height for all | ||
| 2410 | physical monitors associated with TERMINAL. To get information for | ||
| 2411 | each physical monitor, use `display-monitor-attributes-list'. */) | ||
| 2412 | (Lisp_Object terminal) | 2337 | (Lisp_Object terminal) |
| 2413 | { | 2338 | { |
| 2414 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); | 2339 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); |
| @@ -2574,10 +2499,7 @@ pgtk_frame_scale_factor (struct frame *f) | |||
| 2574 | } | 2499 | } |
| 2575 | 2500 | ||
| 2576 | DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, 0, 1, 0, | 2501 | DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, 0, 1, 0, |
| 2577 | doc: /* Return the number of bitplanes of the display TERMINAL. | 2502 | doc: /* SKIP: real doc in xfns.c. */) |
| 2578 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2579 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2580 | If omitted or nil, that stands for the selected frame's display. */) | ||
| 2581 | (Lisp_Object terminal) | 2503 | (Lisp_Object terminal) |
| 2582 | { | 2504 | { |
| 2583 | check_pgtk_display_info (terminal); | 2505 | check_pgtk_display_info (terminal); |
| @@ -2586,10 +2508,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 2586 | 2508 | ||
| 2587 | 2509 | ||
| 2588 | DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, 0, 1, 0, | 2510 | DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, 0, 1, 0, |
| 2589 | doc: /* Returns the number of color cells of the display TERMINAL. | 2511 | doc: /* SKIP: real doc in xfns.c. */) |
| 2590 | The optional argument TERMINAL specifies which display to ask about. | ||
| 2591 | TERMINAL should be a terminal object, a frame or a display name (a string). | ||
| 2592 | If omitted or nil, that stands for the selected frame's display. */) | ||
| 2593 | (Lisp_Object terminal) | 2512 | (Lisp_Object terminal) |
| 2594 | { | 2513 | { |
| 2595 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); | 2514 | struct pgtk_display_info *dpyinfo = check_pgtk_display_info (terminal); |
| @@ -3071,36 +2990,7 @@ pgtk_hide_tip (bool delete) | |||
| 3071 | } | 2990 | } |
| 3072 | 2991 | ||
| 3073 | DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, | 2992 | DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, |
| 3074 | doc: /* Show STRING in a "tooltip" window on frame FRAME. | 2993 | doc: /* SKIP: real doc in xfns.c. */) |
| 3075 | A tooltip window is a small X window displaying a string. | ||
| 3076 | |||
| 3077 | This is an internal function; Lisp code should call `tooltip-show'. | ||
| 3078 | |||
| 3079 | FRAME nil or omitted means use the selected frame. | ||
| 3080 | |||
| 3081 | PARMS is an optional list of frame parameters which can be used to | ||
| 3082 | change the tooltip's appearance. | ||
| 3083 | |||
| 3084 | Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil | ||
| 3085 | means use the default timeout from the `x-show-tooltip-timeout' | ||
| 3086 | variable. | ||
| 3087 | |||
| 3088 | If the list of frame parameters PARMS contains a `left' parameter, | ||
| 3089 | display the tooltip at that x-position. If the list of frame parameters | ||
| 3090 | PARMS contains no `left' but a `right' parameter, display the tooltip | ||
| 3091 | right-adjusted at that x-position. Otherwise display it at the | ||
| 3092 | x-position of the mouse, with offset DX added (default is 5 if DX isn't | ||
| 3093 | specified). | ||
| 3094 | |||
| 3095 | Likewise for the y-position: If a `top' frame parameter is specified, it | ||
| 3096 | determines the position of the upper edge of the tooltip window. If a | ||
| 3097 | `bottom' parameter but no `top' frame parameter is specified, it | ||
| 3098 | determines the position of the lower edge of the tooltip window. | ||
| 3099 | Otherwise display the tooltip window at the y-position of the mouse, | ||
| 3100 | with offset DY added (default is -10). | ||
| 3101 | |||
| 3102 | A tooltip's maximum size is specified by `x-max-tooltip-size'. | ||
| 3103 | Text larger than the specified size is clipped. */) | ||
| 3104 | (Lisp_Object string, Lisp_Object frame, Lisp_Object parms, | 2994 | (Lisp_Object string, Lisp_Object frame, Lisp_Object parms, |
| 3105 | Lisp_Object timeout, Lisp_Object dx, Lisp_Object dy) | 2995 | Lisp_Object timeout, Lisp_Object dx, Lisp_Object dy) |
| 3106 | { | 2996 | { |
| @@ -3385,8 +3275,7 @@ Text larger than the specified size is clipped. */) | |||
| 3385 | 3275 | ||
| 3386 | 3276 | ||
| 3387 | DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, | 3277 | DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, |
| 3388 | doc: /* Hide the current tooltip window, if there is any. | 3278 | doc: /* SKIP: real doc in xfns.c. */) |
| 3389 | Value is t if tooltip was open, nil otherwise. */) | ||
| 3390 | (void) | 3279 | (void) |
| 3391 | { | 3280 | { |
| 3392 | return pgtk_hide_tip (!tooltip_reuse_hidden_frame); | 3281 | return pgtk_hide_tip (!tooltip_reuse_hidden_frame); |
| @@ -3686,18 +3575,7 @@ clean_up_dialog (void) | |||
| 3686 | } | 3575 | } |
| 3687 | 3576 | ||
| 3688 | DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 5, 0, | 3577 | DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 5, 0, |
| 3689 | doc: /* Read file name, prompting with PROMPT in directory DIR. | 3578 | doc: /* SKIP: real doc in xfns.c. */) |
| 3690 | Use a file selection dialog. Select DEFAULT-FILENAME in the dialog's file | ||
| 3691 | selection box, if specified. If MUSTMATCH is non-nil, the returned file | ||
| 3692 | or directory must exist. | ||
| 3693 | |||
| 3694 | This function is defined only on PGTK, NS, MS Windows, and X Windows with the | ||
| 3695 | Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored. | ||
| 3696 | Otherwise, if ONLY-DIR-P is non-nil, the user can select only directories. | ||
| 3697 | On MS Windows 7 and later, the file selection dialog "remembers" the last | ||
| 3698 | directory where the user selected a file, and will open that directory | ||
| 3699 | instead of DIR on subsequent invocations of this function with the same | ||
| 3700 | value of DIR as in previous invocations; this is standard MS Windows behavior. */) | ||
| 3701 | (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, | 3579 | (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filename, |
| 3702 | Lisp_Object mustmatch, Lisp_Object only_dir_p) | 3580 | Lisp_Object mustmatch, Lisp_Object only_dir_p) |
| 3703 | { | 3581 | { |
| @@ -3763,10 +3641,7 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3763 | } | 3641 | } |
| 3764 | 3642 | ||
| 3765 | DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0, | 3643 | DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0, |
| 3766 | doc: /* Read a font using a GTK dialog and return a font spec. | 3644 | doc: /* SKIP: real doc in xfns.c. */) |
| 3767 | |||
| 3768 | FRAME is the frame on which to pop up the font chooser. If omitted or | ||
| 3769 | nil, it defaults to the selected frame. */) | ||
| 3770 | (Lisp_Object frame, Lisp_Object ignored) | 3645 | (Lisp_Object frame, Lisp_Object ignored) |
| 3771 | { | 3646 | { |
| 3772 | struct frame *f = decode_window_system_frame (frame); | 3647 | struct frame *f = decode_window_system_frame (frame); |