diff options
| author | Jason Rumney | 2001-11-13 00:02:55 +0000 |
|---|---|---|
| committer | Jason Rumney | 2001-11-13 00:02:55 +0000 |
| commit | 74e1aeec7fc0aeccde00bf505a8e43e56117d5d2 (patch) | |
| tree | 7a26d505feb8f4fed7fc6acb0cb13bc91f8b4deb /src | |
| parent | d3d268d5f2abd20060a6d47e7c825ceea143df66 (diff) | |
| download | emacs-74e1aeec7fc0aeccde00bf505a8e43e56117d5d2.tar.gz emacs-74e1aeec7fc0aeccde00bf505a8e43e56117d5d2.zip | |
Change doc-string comments to `new style'. [w/`doc:' keyword]. Doc fixes.
Don't define max.
(Fx_open_connection): Only execute once.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 745 |
1 files changed, 363 insertions, 382 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 9a2a1e31661..cd82447c73f 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -52,8 +52,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 52 | #include <shellapi.h> | 52 | #include <shellapi.h> |
| 53 | #include <ctype.h> | 53 | #include <ctype.h> |
| 54 | 54 | ||
| 55 | #define max(a, b) ((a) > (b) ? (a) : (b)) | ||
| 56 | |||
| 57 | extern void free_frame_menubar (); | 55 | extern void free_frame_menubar (); |
| 58 | extern double atof (); | 56 | extern double atof (); |
| 59 | extern int w32_console_toggle_lock_key (int vk_code, Lisp_Object new_state); | 57 | extern int w32_console_toggle_lock_key (int vk_code, Lisp_Object new_state); |
| @@ -1068,10 +1066,12 @@ x_report_frame_params (f, alistptr) | |||
| 1068 | } | 1066 | } |
| 1069 | 1067 | ||
| 1070 | 1068 | ||
| 1071 | DEFUN ("w32-define-rgb-color", Fw32_define_rgb_color, Sw32_define_rgb_color, 4, 4, 0, | 1069 | DEFUN ("w32-define-rgb-color", Fw32_define_rgb_color, |
| 1072 | "Convert RGB numbers to a windows color reference and associate with NAME (a string).\n\ | 1070 | Sw32_define_rgb_color, 4, 4, 0, |
| 1073 | This adds or updates a named color to w32-color-map, making it available for use.\n\ | 1071 | doc: /* Convert RGB numbers to a windows color reference and associate with NAME. |
| 1074 | The original entry's RGB ref is returned, or nil if the entry is new.") | 1072 | This adds or updates a named color to w32-color-map, making it |
| 1073 | available for use. The original entry's RGB ref is returned, or nil | ||
| 1074 | if the entry is new. */) | ||
| 1075 | (red, green, blue, name) | 1075 | (red, green, blue, name) |
| 1076 | Lisp_Object red, green, blue, name; | 1076 | Lisp_Object red, green, blue, name; |
| 1077 | { | 1077 | { |
| @@ -1106,13 +1106,14 @@ The original entry's RGB ref is returned, or nil if the entry is new.") | |||
| 1106 | return (oldrgb); | 1106 | return (oldrgb); |
| 1107 | } | 1107 | } |
| 1108 | 1108 | ||
| 1109 | DEFUN ("w32-load-color-file", Fw32_load_color_file, Sw32_load_color_file, 1, 1, 0, | 1109 | DEFUN ("w32-load-color-file", Fw32_load_color_file, |
| 1110 | "Create an alist of color entries from an external file (ie. rgb.txt).\n\ | 1110 | Sw32_load_color_file, 1, 1, 0, |
| 1111 | Assign this value to w32-color-map to replace the existing color map.\n\ | 1111 | doc: /* Create an alist of color entries from an external file. |
| 1112 | \ | 1112 | Assign this value to w32-color-map to replace the existing color map. |
| 1113 | The file should define one named RGB color per line like so:\ | 1113 | |
| 1114 | R G B name\n\ | 1114 | The file should define one named RGB color per line like so: |
| 1115 | where R,G,B are numbers between 0 and 255 and name is an arbitrary string.") | 1115 | R G B name |
| 1116 | where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */) | ||
| 1116 | (filename) | 1117 | (filename) |
| 1117 | Lisp_Object filename; | 1118 | Lisp_Object filename; |
| 1118 | { | 1119 | { |
| @@ -1404,7 +1405,7 @@ colormap_t w32_color_map[] = | |||
| 1404 | }; | 1405 | }; |
| 1405 | 1406 | ||
| 1406 | DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map, | 1407 | DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map, |
| 1407 | 0, 0, 0, "Return the default color map.") | 1408 | 0, 0, 0, doc: /* Return the default color map. */) |
| 1408 | () | 1409 | () |
| 1409 | { | 1410 | { |
| 1410 | int i; | 1411 | int i; |
| @@ -2915,15 +2916,15 @@ validate_x_resource_name () | |||
| 2915 | extern char *x_get_string_resource (); | 2916 | extern char *x_get_string_resource (); |
| 2916 | 2917 | ||
| 2917 | DEFUN ("x-get-resource", Fx_get_resource, Sx_get_resource, 2, 4, 0, | 2918 | DEFUN ("x-get-resource", Fx_get_resource, Sx_get_resource, 2, 4, 0, |
| 2918 | "Return the value of ATTRIBUTE, of class CLASS, from the X defaults database.\n\ | 2919 | doc: /* Return the value of ATTRIBUTE, of class CLASS, from the X defaults database. |
| 2919 | This uses `INSTANCE.ATTRIBUTE' as the key and `Emacs.CLASS' as the\n\ | 2920 | This uses `INSTANCE.ATTRIBUTE' as the key and `Emacs.CLASS' as the |
| 2920 | class, where INSTANCE is the name under which Emacs was invoked, or\n\ | 2921 | class, where INSTANCE is the name under which Emacs was invoked, or |
| 2921 | the name specified by the `-name' or `-rn' command-line arguments.\n\ | 2922 | the name specified by the `-name' or `-rn' command-line arguments. |
| 2922 | \n\ | 2923 | |
| 2923 | The optional arguments COMPONENT and SUBCLASS add to the key and the\n\ | 2924 | The optional arguments COMPONENT and SUBCLASS add to the key and the |
| 2924 | class, respectively. You must specify both of them or neither.\n\ | 2925 | class, respectively. You must specify both of them or neither. |
| 2925 | If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE'\n\ | 2926 | If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE' |
| 2926 | and the class is `Emacs.CLASS.SUBCLASS'.") | 2927 | and the class is `Emacs.CLASS.SUBCLASS'. */) |
| 2927 | (attribute, class, component, subclass) | 2928 | (attribute, class, component, subclass) |
| 2928 | Lisp_Object attribute, class, component, subclass; | 2929 | Lisp_Object attribute, class, component, subclass; |
| 2929 | { | 2930 | { |
| @@ -3127,12 +3128,12 @@ x_default_parameter (f, alist, prop, deflt, xprop, xclass, type) | |||
| 3127 | } | 3128 | } |
| 3128 | 3129 | ||
| 3129 | DEFUN ("x-parse-geometry", Fx_parse_geometry, Sx_parse_geometry, 1, 1, 0, | 3130 | DEFUN ("x-parse-geometry", Fx_parse_geometry, Sx_parse_geometry, 1, 1, 0, |
| 3130 | "Parse an X-style geometry string STRING.\n\ | 3131 | doc: /* Parse an X-style geometry string STRING. |
| 3131 | Returns an alist of the form ((top . TOP), (left . LEFT) ... ).\n\ | 3132 | Returns an alist of the form ((top . TOP), (left . LEFT) ... ). |
| 3132 | The properties returned may include `top', `left', `height', and `width'.\n\ | 3133 | The properties returned may include `top', `left', `height', and `width'. |
| 3133 | The value of `left' or `top' may be an integer,\n\ | 3134 | The value of `left' or `top' may be an integer, |
| 3134 | or a list (+ N) meaning N pixels relative to top/left corner,\n\ | 3135 | or a list (+ N) meaning N pixels relative to top/left corner, |
| 3135 | or a list (- N) meaning -N pixels relative to bottom/right corner.") | 3136 | or a list (- N) meaning -N pixels relative to bottom/right corner. */) |
| 3136 | (string) | 3137 | (string) |
| 3137 | Lisp_Object string; | 3138 | Lisp_Object string; |
| 3138 | { | 3139 | { |
| @@ -5184,15 +5185,15 @@ unwind_create_frame (frame) | |||
| 5184 | 5185 | ||
| 5185 | DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | 5186 | DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, |
| 5186 | 1, 1, 0, | 5187 | 1, 1, 0, |
| 5187 | "Make a new window, which is called a \"frame\" in Emacs terms.\n\ | 5188 | doc: /* Make a new window, which is called a \"frame\" in Emacs terms. |
| 5188 | Returns an Emacs frame object.\n\ | 5189 | Returns an Emacs frame object. |
| 5189 | ALIST is an alist of frame parameters.\n\ | 5190 | ALIST is an alist of frame parameters. |
| 5190 | If the parameters specify that the frame should not have a minibuffer,\n\ | 5191 | If the parameters specify that the frame should not have a minibuffer, |
| 5191 | and do not specify a specific minibuffer window to use,\n\ | 5192 | and do not specify a specific minibuffer window to use, |
| 5192 | then `default-minibuffer-frame' must be a frame whose minibuffer can\n\ | 5193 | then `default-minibuffer-frame' must be a frame whose minibuffer can |
| 5193 | be shared by the new frame.\n\ | 5194 | be shared by the new frame. |
| 5194 | \n\ | 5195 | |
| 5195 | This function is an internal primitive--use `make-frame' instead.") | 5196 | This function is an internal primitive--use `make-frame' instead. */) |
| 5196 | (parms) | 5197 | (parms) |
| 5197 | Lisp_Object parms; | 5198 | Lisp_Object parms; |
| 5198 | { | 5199 | { |
| @@ -5545,7 +5546,7 @@ x_get_focus_frame (frame) | |||
| 5545 | } | 5546 | } |
| 5546 | 5547 | ||
| 5547 | DEFUN ("w32-focus-frame", Fw32_focus_frame, Sw32_focus_frame, 1, 1, 0, | 5548 | DEFUN ("w32-focus-frame", Fw32_focus_frame, Sw32_focus_frame, 1, 1, 0, |
| 5548 | "Give FRAME input focus, raising to foreground if necessary.") | 5549 | doc: /* Give FRAME input focus, raising to foreground if necessary. */) |
| 5549 | (frame) | 5550 | (frame) |
| 5550 | Lisp_Object frame; | 5551 | Lisp_Object frame; |
| 5551 | { | 5552 | { |
| @@ -7180,9 +7181,9 @@ w32_find_bdf_fonts_in_dir (Lisp_Object directory) | |||
| 7180 | 7181 | ||
| 7181 | DEFUN ("w32-find-bdf-fonts", Fw32_find_bdf_fonts, Sw32_find_bdf_fonts, | 7182 | DEFUN ("w32-find-bdf-fonts", Fw32_find_bdf_fonts, Sw32_find_bdf_fonts, |
| 7182 | 1, 1, 0, | 7183 | 1, 1, 0, |
| 7183 | "Return a list of BDF fonts in DIR, suitable for appending to\n\ | 7184 | doc: /* Return a list of BDF fonts in DIR, suitable for appending to |
| 7184 | w32-bdf-filename-alist. Fonts which do not contain an xlfd description\n\ | 7185 | w32-bdf-filename-alist. Fonts which do not contain an xlfd description |
| 7185 | will not be included in the list. DIR may be a list of directories.") | 7186 | will not be included in the list. DIR may be a list of directories. */) |
| 7186 | (directory) | 7187 | (directory) |
| 7187 | Lisp_Object directory; | 7188 | Lisp_Object directory; |
| 7188 | { | 7189 | { |
| @@ -7207,7 +7208,7 @@ will not be included in the list. DIR may be a list of directories.") | |||
| 7207 | 7208 | ||
| 7208 | 7209 | ||
| 7209 | DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, | 7210 | DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, |
| 7210 | "Internal function called by `color-defined-p', which see.") | 7211 | doc: /* Internal function called by `color-defined-p', which see. */) |
| 7211 | (color, frame) | 7212 | (color, frame) |
| 7212 | Lisp_Object color, frame; | 7213 | Lisp_Object color, frame; |
| 7213 | { | 7214 | { |
| @@ -7223,7 +7224,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, | |||
| 7223 | } | 7224 | } |
| 7224 | 7225 | ||
| 7225 | DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | 7226 | DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, |
| 7226 | "Internal function called by `color-values', which see.") | 7227 | doc: /* Internal function called by `color-values', which see. */) |
| 7227 | (color, frame) | 7228 | (color, frame) |
| 7228 | Lisp_Object color, frame; | 7229 | Lisp_Object color, frame; |
| 7229 | { | 7230 | { |
| @@ -7249,7 +7250,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | |||
| 7249 | } | 7250 | } |
| 7250 | 7251 | ||
| 7251 | DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, | 7252 | DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, |
| 7252 | "Internal function called by `display-color-p', which see.") | 7253 | doc: /* Internal function called by `display-color-p', which see. */) |
| 7253 | (display) | 7254 | (display) |
| 7254 | Lisp_Object display; | 7255 | Lisp_Object display; |
| 7255 | { | 7256 | { |
| @@ -7261,13 +7262,13 @@ DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, | |||
| 7261 | return Qt; | 7262 | return Qt; |
| 7262 | } | 7263 | } |
| 7263 | 7264 | ||
| 7264 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, Sx_display_grayscale_p, | 7265 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, |
| 7265 | 0, 1, 0, | 7266 | Sx_display_grayscale_p, 0, 1, 0, |
| 7266 | "Return t if the X display supports shades of gray.\n\ | 7267 | doc: /* Return t if the X display supports shades of gray. |
| 7267 | Note that color displays do support shades of gray.\n\ | 7268 | Note that color displays do support shades of gray. |
| 7268 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7269 | The optional argument DISPLAY specifies which display to ask about. |
| 7269 | DISPLAY should be either a frame or a display name (a string).\n\ | 7270 | DISPLAY should be either a frame or a display name (a string). |
| 7270 | If omitted or nil, that stands for the selected frame's display.") | 7271 | If omitted or nil, that stands for the selected frame's display. */) |
| 7271 | (display) | 7272 | (display) |
| 7272 | Lisp_Object display; | 7273 | Lisp_Object display; |
| 7273 | { | 7274 | { |
| @@ -7279,12 +7280,12 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7279 | return Qt; | 7280 | return Qt; |
| 7280 | } | 7281 | } |
| 7281 | 7282 | ||
| 7282 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, | 7283 | DEFUN ("x-display-pixel-width", Fx_display_pixel_width, |
| 7283 | 0, 1, 0, | 7284 | Sx_display_pixel_width, 0, 1, 0, |
| 7284 | "Returns the width in pixels of the X display DISPLAY.\n\ | 7285 | doc: /* Returns the width in pixels of DISPLAY. |
| 7285 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7286 | The optional argument DISPLAY specifies which display to ask about. |
| 7286 | DISPLAY should be either a frame or a display name (a string).\n\ | 7287 | DISPLAY should be either a frame or a display name (a string). |
| 7287 | If omitted or nil, that stands for the selected frame's display.") | 7288 | If omitted or nil, that stands for the selected frame's display. */) |
| 7288 | (display) | 7289 | (display) |
| 7289 | Lisp_Object display; | 7290 | Lisp_Object display; |
| 7290 | { | 7291 | { |
| @@ -7294,11 +7295,11 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7294 | } | 7295 | } |
| 7295 | 7296 | ||
| 7296 | DEFUN ("x-display-pixel-height", Fx_display_pixel_height, | 7297 | DEFUN ("x-display-pixel-height", Fx_display_pixel_height, |
| 7297 | Sx_display_pixel_height, 0, 1, 0, | 7298 | Sx_display_pixel_height, 0, 1, 0, |
| 7298 | "Returns the height in pixels of the X display DISPLAY.\n\ | 7299 | doc: /* Returns the height in pixels of DISPLAY. |
| 7299 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7300 | The optional argument DISPLAY specifies which display to ask about. |
| 7300 | DISPLAY should be either a frame or a display name (a string).\n\ | 7301 | DISPLAY should be either a frame or a display name (a string). |
| 7301 | If omitted or nil, that stands for the selected frame's display.") | 7302 | If omitted or nil, that stands for the selected frame's display. */) |
| 7302 | (display) | 7303 | (display) |
| 7303 | Lisp_Object display; | 7304 | Lisp_Object display; |
| 7304 | { | 7305 | { |
| @@ -7308,11 +7309,11 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7308 | } | 7309 | } |
| 7309 | 7310 | ||
| 7310 | DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, | 7311 | DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, |
| 7311 | 0, 1, 0, | 7312 | 0, 1, 0, |
| 7312 | "Returns the number of bitplanes of the display DISPLAY.\n\ | 7313 | doc: /* Returns the number of bitplanes of DISPLAY. |
| 7313 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7314 | The optional argument DISPLAY specifies which display to ask about. |
| 7314 | DISPLAY should be either a frame or a display name (a string).\n\ | 7315 | DISPLAY should be either a frame or a display name (a string). |
| 7315 | If omitted or nil, that stands for the selected frame's display.") | 7316 | If omitted or nil, that stands for the selected frame's display. */) |
| 7316 | (display) | 7317 | (display) |
| 7317 | Lisp_Object display; | 7318 | Lisp_Object display; |
| 7318 | { | 7319 | { |
| @@ -7322,11 +7323,11 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7322 | } | 7323 | } |
| 7323 | 7324 | ||
| 7324 | DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, | 7325 | DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, |
| 7325 | 0, 1, 0, | 7326 | 0, 1, 0, |
| 7326 | "Returns the number of color cells of the display DISPLAY.\n\ | 7327 | doc: /* Returns the number of color cells of DISPLAY. |
| 7327 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7328 | The optional argument DISPLAY specifies which display to ask about. |
| 7328 | DISPLAY should be either a frame or a display name (a string).\n\ | 7329 | DISPLAY should be either a frame or a display name (a string). |
| 7329 | If omitted or nil, that stands for the selected frame's display.") | 7330 | If omitted or nil, that stands for the selected frame's display. */) |
| 7330 | (display) | 7331 | (display) |
| 7331 | Lisp_Object display; | 7332 | Lisp_Object display; |
| 7332 | { | 7333 | { |
| @@ -7350,11 +7351,11 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7350 | 7351 | ||
| 7351 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, | 7352 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, |
| 7352 | Sx_server_max_request_size, | 7353 | Sx_server_max_request_size, |
| 7353 | 0, 1, 0, | 7354 | 0, 1, 0, |
| 7354 | "Returns the maximum request size of the server of display DISPLAY.\n\ | 7355 | doc: /* Returns the maximum request size of the server of DISPLAY. |
| 7355 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7356 | The optional argument DISPLAY specifies which display to ask about. |
| 7356 | DISPLAY should be either a frame or a display name (a string).\n\ | 7357 | DISPLAY should be either a frame or a display name (a string). |
| 7357 | If omitted or nil, that stands for the selected frame's display.") | 7358 | If omitted or nil, that stands for the selected frame's display. */) |
| 7358 | (display) | 7359 | (display) |
| 7359 | Lisp_Object display; | 7360 | Lisp_Object display; |
| 7360 | { | 7361 | { |
| @@ -7364,10 +7365,10 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7364 | } | 7365 | } |
| 7365 | 7366 | ||
| 7366 | DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, | 7367 | DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, |
| 7367 | "Returns the vendor ID string of the W32 system (Microsoft).\n\ | 7368 | doc: /* Returns the vendor ID string of the W32 system (Microsoft). |
| 7368 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7369 | The optional argument DISPLAY specifies which display to ask about. |
| 7369 | DISPLAY should be either a frame or a display name (a string).\n\ | 7370 | DISPLAY should be either a frame or a display name (a string). |
| 7370 | If omitted or nil, that stands for the selected frame's display.") | 7371 | If omitted or nil, that stands for the selected frame's display. */) |
| 7371 | (display) | 7372 | (display) |
| 7372 | Lisp_Object display; | 7373 | Lisp_Object display; |
| 7373 | { | 7374 | { |
| @@ -7375,13 +7376,14 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7375 | } | 7376 | } |
| 7376 | 7377 | ||
| 7377 | DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, | 7378 | DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, |
| 7378 | "Returns the version numbers of the server of display DISPLAY.\n\ | 7379 | doc: /* Returns the version numbers of the server of DISPLAY. |
| 7379 | The value is a list of three integers: the major and minor\n\ | 7380 | The value is a list of three integers: the major and minor |
| 7380 | version numbers, and the vendor-specific release\n\ | 7381 | version numbers, and the vendor-specific release |
| 7381 | number. See also the function `x-server-vendor'.\n\n\ | 7382 | number. See also the function `x-server-vendor'. |
| 7382 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7383 | |
| 7383 | DISPLAY should be either a frame or a display name (a string).\n\ | 7384 | The optional argument DISPLAY specifies which display to ask about. |
| 7384 | If omitted or nil, that stands for the selected frame's display.") | 7385 | DISPLAY should be either a frame or a display name (a string). |
| 7386 | If omitted or nil, that stands for the selected frame's display. */) | ||
| 7385 | (display) | 7387 | (display) |
| 7386 | Lisp_Object display; | 7388 | Lisp_Object display; |
| 7387 | { | 7389 | { |
| @@ -7391,21 +7393,22 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7391 | } | 7393 | } |
| 7392 | 7394 | ||
| 7393 | DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, | 7395 | DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, |
| 7394 | "Returns the number of screens on the server of display DISPLAY.\n\ | 7396 | doc: /* Returns the number of screens on the server of DISPLAY. |
| 7395 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7397 | The optional argument DISPLAY specifies which display to ask about. |
| 7396 | DISPLAY should be either a frame or a display name (a string).\n\ | 7398 | DISPLAY should be either a frame or a display name (a string). |
| 7397 | If omitted or nil, that stands for the selected frame's display.") | 7399 | If omitted or nil, that stands for the selected frame's display. */) |
| 7398 | (display) | 7400 | (display) |
| 7399 | Lisp_Object display; | 7401 | Lisp_Object display; |
| 7400 | { | 7402 | { |
| 7401 | return make_number (1); | 7403 | return make_number (1); |
| 7402 | } | 7404 | } |
| 7403 | 7405 | ||
| 7404 | DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 0, 1, 0, | 7406 | DEFUN ("x-display-mm-height", Fx_display_mm_height, |
| 7405 | "Returns the height in millimeters of the X display DISPLAY.\n\ | 7407 | Sx_display_mm_height, 0, 1, 0, |
| 7406 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7408 | doc: /* Returns the height in millimeters of DISPLAY. |
| 7407 | DISPLAY should be either a frame or a display name (a string).\n\ | 7409 | The optional argument DISPLAY specifies which display to ask about. |
| 7408 | If omitted or nil, that stands for the selected frame's display.") | 7410 | DISPLAY should be either a frame or a display name (a string). |
| 7411 | If omitted or nil, that stands for the selected frame's display. */) | ||
| 7409 | (display) | 7412 | (display) |
| 7410 | Lisp_Object display; | 7413 | Lisp_Object display; |
| 7411 | { | 7414 | { |
| @@ -7423,10 +7426,10 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7423 | } | 7426 | } |
| 7424 | 7427 | ||
| 7425 | DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, | 7428 | DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, |
| 7426 | "Returns the width in millimeters of the X display DISPLAY.\n\ | 7429 | doc: /* Returns the width in millimeters of DISPLAY. |
| 7427 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7430 | The optional argument DISPLAY specifies which display to ask about. |
| 7428 | DISPLAY should be either a frame or a display name (a string).\n\ | 7431 | DISPLAY should be either a frame or a display name (a string). |
| 7429 | If omitted or nil, that stands for the selected frame's display.") | 7432 | If omitted or nil, that stands for the selected frame's display. */) |
| 7430 | (display) | 7433 | (display) |
| 7431 | Lisp_Object display; | 7434 | Lisp_Object display; |
| 7432 | { | 7435 | { |
| @@ -7445,12 +7448,12 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7445 | } | 7448 | } |
| 7446 | 7449 | ||
| 7447 | DEFUN ("x-display-backing-store", Fx_display_backing_store, | 7450 | DEFUN ("x-display-backing-store", Fx_display_backing_store, |
| 7448 | Sx_display_backing_store, 0, 1, 0, | 7451 | Sx_display_backing_store, 0, 1, 0, |
| 7449 | "Returns an indication of whether display DISPLAY does backing store.\n\ | 7452 | doc: /* Returns an indication of whether DISPLAY does backing store. |
| 7450 | The value may be `always', `when-mapped', or `not-useful'.\n\ | 7453 | The value may be `always', `when-mapped', or `not-useful'. |
| 7451 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7454 | The optional argument DISPLAY specifies which display to ask about. |
| 7452 | DISPLAY should be either a frame or a display name (a string).\n\ | 7455 | DISPLAY should be either a frame or a display name (a string). |
| 7453 | If omitted or nil, that stands for the selected frame's display.") | 7456 | If omitted or nil, that stands for the selected frame's display. */) |
| 7454 | (display) | 7457 | (display) |
| 7455 | Lisp_Object display; | 7458 | Lisp_Object display; |
| 7456 | { | 7459 | { |
| @@ -7458,13 +7461,14 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7458 | } | 7461 | } |
| 7459 | 7462 | ||
| 7460 | DEFUN ("x-display-visual-class", Fx_display_visual_class, | 7463 | DEFUN ("x-display-visual-class", Fx_display_visual_class, |
| 7461 | Sx_display_visual_class, 0, 1, 0, | 7464 | Sx_display_visual_class, 0, 1, 0, |
| 7462 | "Returns the visual class of the display DISPLAY.\n\ | 7465 | doc: /* Returns the visual class of DISPLAY. |
| 7463 | The value is one of the symbols `static-gray', `gray-scale',\n\ | 7466 | The value is one of the symbols `static-gray', `gray-scale', |
| 7464 | `static-color', `pseudo-color', `true-color', or `direct-color'.\n\n\ | 7467 | `static-color', `pseudo-color', `true-color', or `direct-color'. |
| 7465 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7468 | |
| 7466 | DISPLAY should be either a frame or a display name (a string).\n\ | 7469 | The optional argument DISPLAY specifies which display to ask about. |
| 7467 | If omitted or nil, that stands for the selected frame's display.") | 7470 | DISPLAY should be either a frame or a display name (a string). |
| 7471 | If omitted or nil, that stands for the selected frame's display. */) | ||
| 7468 | (display) | 7472 | (display) |
| 7469 | Lisp_Object display; | 7473 | Lisp_Object display; |
| 7470 | { | 7474 | { |
| @@ -7484,11 +7488,11 @@ If omitted or nil, that stands for the selected frame's display.") | |||
| 7484 | } | 7488 | } |
| 7485 | 7489 | ||
| 7486 | DEFUN ("x-display-save-under", Fx_display_save_under, | 7490 | DEFUN ("x-display-save-under", Fx_display_save_under, |
| 7487 | Sx_display_save_under, 0, 1, 0, | 7491 | Sx_display_save_under, 0, 1, 0, |
| 7488 | "Returns t if the display DISPLAY supports the save-under feature.\n\ | 7492 | doc: /* Returns t if DISPLAY supports the save-under feature. |
| 7489 | The optional argument DISPLAY specifies which display to ask about.\n\ | 7493 | The optional argument DISPLAY specifies which display to ask about. |
| 7490 | DISPLAY should be either a frame or a display name (a string).\n\ | 7494 | DISPLAY should be either a frame or a display name (a string). |
| 7491 | If omitted or nil, that stands for the selected frame's display.") | 7495 | If omitted or nil, that stands for the selected frame's display. */) |
| 7492 | (display) | 7496 | (display) |
| 7493 | Lisp_Object display; | 7497 | Lisp_Object display; |
| 7494 | { | 7498 | { |
| @@ -7570,17 +7574,22 @@ x_display_info_for_name (name) | |||
| 7570 | } | 7574 | } |
| 7571 | 7575 | ||
| 7572 | DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection, | 7576 | DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection, |
| 7573 | 1, 3, 0, "Open a connection to a server.\n\ | 7577 | 1, 3, 0, doc: /* Open a connection to a server. |
| 7574 | DISPLAY is the name of the display to connect to.\n\ | 7578 | DISPLAY is the name of the display to connect to. |
| 7575 | Optional second arg XRM-STRING is a string of resources in xrdb format.\n\ | 7579 | Optional second arg XRM-STRING is a string of resources in xrdb format. |
| 7576 | If the optional third arg MUST-SUCCEED is non-nil,\n\ | 7580 | If the optional third arg MUST-SUCCEED is non-nil, |
| 7577 | terminate Emacs if we can't open the connection.") | 7581 | terminate Emacs if we can't open the connection. */) |
| 7578 | (display, xrm_string, must_succeed) | 7582 | (display, xrm_string, must_succeed) |
| 7579 | Lisp_Object display, xrm_string, must_succeed; | 7583 | Lisp_Object display, xrm_string, must_succeed; |
| 7580 | { | 7584 | { |
| 7581 | unsigned char *xrm_option; | 7585 | unsigned char *xrm_option; |
| 7582 | struct w32_display_info *dpyinfo; | 7586 | struct w32_display_info *dpyinfo; |
| 7583 | 7587 | ||
| 7588 | /* If initialization has already been done, return now to avoid | ||
| 7589 | overwriting critical parts of one_w32_display_info. */ | ||
| 7590 | if (w32_in_use) | ||
| 7591 | return Qnil; | ||
| 7592 | |||
| 7584 | CHECK_STRING (display); | 7593 | CHECK_STRING (display); |
| 7585 | if (! NILP (xrm_string)) | 7594 | if (! NILP (xrm_string)) |
| 7586 | CHECK_STRING (xrm_string); | 7595 | CHECK_STRING (xrm_string); |
| @@ -7651,9 +7660,9 @@ terminate Emacs if we can't open the connection.") | |||
| 7651 | 7660 | ||
| 7652 | DEFUN ("x-close-connection", Fx_close_connection, | 7661 | DEFUN ("x-close-connection", Fx_close_connection, |
| 7653 | Sx_close_connection, 1, 1, 0, | 7662 | Sx_close_connection, 1, 1, 0, |
| 7654 | "Close the connection to DISPLAY's server.\n\ | 7663 | doc: /* Close the connection to DISPLAY's server. |
| 7655 | For DISPLAY, specify either a frame or a display name (a string).\n\ | 7664 | For DISPLAY, specify either a frame or a display name (a string). |
| 7656 | If DISPLAY is nil, that stands for the selected frame's display.") | 7665 | If DISPLAY is nil, that stands for the selected frame's display. */) |
| 7657 | (display) | 7666 | (display) |
| 7658 | Lisp_Object display; | 7667 | Lisp_Object display; |
| 7659 | { | 7668 | { |
| @@ -7682,7 +7691,7 @@ If DISPLAY is nil, that stands for the selected frame's display.") | |||
| 7682 | } | 7691 | } |
| 7683 | 7692 | ||
| 7684 | DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, | 7693 | DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, |
| 7685 | "Return the list of display names that Emacs has connections to.") | 7694 | doc: /* Return the list of display names that Emacs has connections to. */) |
| 7686 | () | 7695 | () |
| 7687 | { | 7696 | { |
| 7688 | Lisp_Object tail, result; | 7697 | Lisp_Object tail, result; |
| @@ -7695,12 +7704,7 @@ DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, | |||
| 7695 | } | 7704 | } |
| 7696 | 7705 | ||
| 7697 | DEFUN ("x-synchronize", Fx_synchronize, Sx_synchronize, 1, 2, 0, | 7706 | DEFUN ("x-synchronize", Fx_synchronize, Sx_synchronize, 1, 2, 0, |
| 7698 | "If ON is non-nil, report errors as soon as the erring request is made.\n\ | 7707 | doc: /* This is a noop on W32 systems. */) |
| 7699 | If ON is nil, allow buffering of requests.\n\ | ||
| 7700 | This is a noop on W32 systems.\n\ | ||
| 7701 | The optional second argument DISPLAY specifies which display to act on.\n\ | ||
| 7702 | DISPLAY should be either a frame or a display name (a string).\n\ | ||
| 7703 | If DISPLAY is omitted or nil, that stands for the selected frame's display.") | ||
| 7704 | (on, display) | 7708 | (on, display) |
| 7705 | Lisp_Object display, on; | 7709 | Lisp_Object display, on; |
| 7706 | { | 7710 | { |
| @@ -8367,9 +8371,9 @@ clear_image_cache (f, force_p) | |||
| 8367 | 8371 | ||
| 8368 | DEFUN ("clear-image-cache", Fclear_image_cache, Sclear_image_cache, | 8372 | DEFUN ("clear-image-cache", Fclear_image_cache, Sclear_image_cache, |
| 8369 | 0, 1, 0, | 8373 | 0, 1, 0, |
| 8370 | "Clear the image cache of FRAME.\n\ | 8374 | doc: /* Clear the image cache of FRAME. |
| 8371 | FRAME nil or omitted means use the selected frame.\n\ | 8375 | FRAME nil or omitted means use the selected frame. |
| 8372 | FRAME t means clear the image caches of all frames.") | 8376 | FRAME t means clear the image caches of all frames. */) |
| 8373 | (frame) | 8377 | (frame) |
| 8374 | Lisp_Object frame; | 8378 | Lisp_Object frame; |
| 8375 | { | 8379 | { |
| @@ -12461,9 +12465,9 @@ x_kill_gs_process (pixmap, f) | |||
| 12461 | 12465 | ||
| 12462 | DEFUN ("x-change-window-property", Fx_change_window_property, | 12466 | DEFUN ("x-change-window-property", Fx_change_window_property, |
| 12463 | Sx_change_window_property, 2, 3, 0, | 12467 | Sx_change_window_property, 2, 3, 0, |
| 12464 | "Change window property PROP to VALUE on the X window of FRAME.\n\ | 12468 | doc: /* Change window property PROP to VALUE on the X window of FRAME. |
| 12465 | PROP and VALUE must be strings. FRAME nil or omitted means use the\n\ | 12469 | PROP and VALUE must be strings. FRAME nil or omitted means use the |
| 12466 | selected frame. Value is VALUE.") | 12470 | selected frame. Value is VALUE. */) |
| 12467 | (prop, value, frame) | 12471 | (prop, value, frame) |
| 12468 | Lisp_Object frame, prop, value; | 12472 | Lisp_Object frame, prop, value; |
| 12469 | { | 12473 | { |
| @@ -12492,8 +12496,8 @@ selected frame. Value is VALUE.") | |||
| 12492 | 12496 | ||
| 12493 | DEFUN ("x-delete-window-property", Fx_delete_window_property, | 12497 | DEFUN ("x-delete-window-property", Fx_delete_window_property, |
| 12494 | Sx_delete_window_property, 1, 2, 0, | 12498 | Sx_delete_window_property, 1, 2, 0, |
| 12495 | "Remove window property PROP from X window of FRAME.\n\ | 12499 | doc: /* Remove window property PROP from X window of FRAME. |
| 12496 | FRAME nil or omitted means use the selected frame. Value is PROP.") | 12500 | FRAME nil or omitted means use the selected frame. Value is PROP. */) |
| 12497 | (prop, frame) | 12501 | (prop, frame) |
| 12498 | Lisp_Object prop, frame; | 12502 | Lisp_Object prop, frame; |
| 12499 | { | 12503 | { |
| @@ -12518,10 +12522,10 @@ FRAME nil or omitted means use the selected frame. Value is PROP.") | |||
| 12518 | 12522 | ||
| 12519 | DEFUN ("x-window-property", Fx_window_property, Sx_window_property, | 12523 | DEFUN ("x-window-property", Fx_window_property, Sx_window_property, |
| 12520 | 1, 2, 0, | 12524 | 1, 2, 0, |
| 12521 | "Value is the value of window property PROP on FRAME.\n\ | 12525 | doc: /* Value is the value of window property PROP on FRAME. |
| 12522 | If FRAME is nil or omitted, use the selected frame. Value is nil\n\ | 12526 | If FRAME is nil or omitted, use the selected frame. Value is nil |
| 12523 | if FRAME hasn't a property with name PROP or if PROP has no string\n\ | 12527 | if FRAME hasn't a property with name PROP or if PROP has no string |
| 12524 | value.") | 12528 | value. */) |
| 12525 | (prop, frame) | 12529 | (prop, frame) |
| 12526 | Lisp_Object prop, frame; | 12530 | Lisp_Object prop, frame; |
| 12527 | { | 12531 | { |
| @@ -13144,27 +13148,27 @@ compute_tip_xy (f, parms, dx, dy, width, height, root_x, root_y) | |||
| 13144 | 13148 | ||
| 13145 | #ifdef TODO /* Tooltip support not complete. */ | 13149 | #ifdef TODO /* Tooltip support not complete. */ |
| 13146 | DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, | 13150 | DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, |
| 13147 | "Show STRING in a \"tooltip\" window on frame FRAME.\n\ | 13151 | doc: /* Show STRING in a \"tooltip\" window on frame FRAME. |
| 13148 | A tooltip window is a small window displaying a string.\n\ | 13152 | A tooltip window is a small window displaying a string. |
| 13149 | \n\ | 13153 | |
| 13150 | FRAME nil or omitted means use the selected frame.\n\ | 13154 | FRAME nil or omitted means use the selected frame. |
| 13151 | \n\ | 13155 | |
| 13152 | PARMS is an optional list of frame parameters which can be\n\ | 13156 | PARMS is an optional list of frame parameters which can be |
| 13153 | used to change the tooltip's appearance.\n\ | 13157 | used to change the tooltip's appearance. |
| 13154 | \n\ | 13158 | |
| 13155 | Automatically hide the tooltip after TIMEOUT seconds.\n\ | 13159 | Automatically hide the tooltip after TIMEOUT seconds. |
| 13156 | TIMEOUT nil means use the default timeout of 5 seconds.\n\ | 13160 | TIMEOUT nil means use the default timeout of 5 seconds. |
| 13157 | \n\ | 13161 | |
| 13158 | If the list of frame parameters PARAMS contains a `left' parameters,\n\ | 13162 | If the list of frame parameters PARAMS contains a `left' parameters, |
| 13159 | the tooltip is displayed at that x-position. Otherwise it is\n\ | 13163 | the tooltip is displayed at that x-position. Otherwise it is |
| 13160 | displayed at the mouse position, with offset DX added (default is 5 if\n\ | 13164 | displayed at the mouse position, with offset DX added (default is 5 if |
| 13161 | DX isn't specified). Likewise for the y-position; if a `top' frame\n\ | 13165 | DX isn't specified). Likewise for the y-position; if a `top' frame |
| 13162 | parameter is specified, it determines the y-position of the tooltip\n\ | 13166 | parameter is specified, it determines the y-position of the tooltip |
| 13163 | window, otherwise it is displayed at the mouse position, with offset\n\ | 13167 | window, otherwise it is displayed at the mouse position, with offset |
| 13164 | DY added (default is -10).\n\ | 13168 | DY added (default is -10). |
| 13165 | \n\ | 13169 | |
| 13166 | A tooltip's maximum size is specified by `x-max-tooltip-size'.\n\ | 13170 | A tooltip's maximum size is specified by `x-max-tooltip-size'. |
| 13167 | Text larger than the specified size is clipped.") | 13171 | Text larger than the specified size is clipped. */) |
| 13168 | (string, frame, parms, timeout, dx, dy) | 13172 | (string, frame, parms, timeout, dx, dy) |
| 13169 | Lisp_Object string, frame, parms, timeout, dx, dy; | 13173 | Lisp_Object string, frame, parms, timeout, dx, dy; |
| 13170 | { | 13174 | { |
| @@ -13352,8 +13356,8 @@ Text larger than the specified size is clipped.") | |||
| 13352 | 13356 | ||
| 13353 | 13357 | ||
| 13354 | DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, | 13358 | DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, |
| 13355 | "Hide the current tooltip window, if there is any.\n\ | 13359 | doc: /* Hide the current tooltip window, if there is any. |
| 13356 | Value is t if tooltip was open, nil otherwise.") | 13360 | Value is t if tooltip was open, nil otherwise. */) |
| 13357 | () | 13361 | () |
| 13358 | { | 13362 | { |
| 13359 | int count; | 13363 | int count; |
| @@ -13396,10 +13400,10 @@ Value is t if tooltip was open, nil otherwise.") | |||
| 13396 | extern Lisp_Object Qfile_name_history; | 13400 | extern Lisp_Object Qfile_name_history; |
| 13397 | 13401 | ||
| 13398 | DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 4, 0, | 13402 | DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 4, 0, |
| 13399 | "Read file name, prompting with PROMPT in directory DIR.\n\ | 13403 | doc: /* Read file name, prompting with PROMPT in directory DIR. |
| 13400 | Use a file selection dialog.\n\ | 13404 | Use a file selection dialog. |
| 13401 | Select DEFAULT-FILENAME in the dialog's file selection box, if\n\ | 13405 | Select DEFAULT-FILENAME in the dialog's file selection box, if |
| 13402 | specified. Ensure that file exists if MUSTMATCH is non-nil.") | 13406 | specified. Ensure that file exists if MUSTMATCH is non-nil. */) |
| 13403 | (prompt, dir, default_filename, mustmatch) | 13407 | (prompt, dir, default_filename, mustmatch) |
| 13404 | Lisp_Object prompt, dir, default_filename, mustmatch; | 13408 | Lisp_Object prompt, dir, default_filename, mustmatch; |
| 13405 | { | 13409 | { |
| @@ -13502,43 +13506,12 @@ specified. Ensure that file exists if MUSTMATCH is non-nil.") | |||
| 13502 | 13506 | ||
| 13503 | 13507 | ||
| 13504 | /*********************************************************************** | 13508 | /*********************************************************************** |
| 13505 | Tests | ||
| 13506 | ***********************************************************************/ | ||
| 13507 | |||
| 13508 | #if GLYPH_DEBUG | ||
| 13509 | |||
| 13510 | DEFUN ("imagep", Fimagep, Simagep, 1, 1, 0, | ||
| 13511 | "Value is non-nil if SPEC is a valid image specification.") | ||
| 13512 | (spec) | ||
| 13513 | Lisp_Object spec; | ||
| 13514 | { | ||
| 13515 | return valid_image_p (spec) ? Qt : Qnil; | ||
| 13516 | } | ||
| 13517 | |||
| 13518 | |||
| 13519 | DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "") | ||
| 13520 | (spec) | ||
| 13521 | Lisp_Object spec; | ||
| 13522 | { | ||
| 13523 | int id = -1; | ||
| 13524 | |||
| 13525 | if (valid_image_p (spec)) | ||
| 13526 | id = lookup_image (SELECTED_FRAME (), spec); | ||
| 13527 | |||
| 13528 | debug_print (spec); | ||
| 13529 | return make_number (id); | ||
| 13530 | } | ||
| 13531 | |||
| 13532 | #endif /* GLYPH_DEBUG != 0 */ | ||
| 13533 | |||
| 13534 | |||
| 13535 | |||
| 13536 | /*********************************************************************** | ||
| 13537 | w32 specialized functions | 13509 | w32 specialized functions |
| 13538 | ***********************************************************************/ | 13510 | ***********************************************************************/ |
| 13539 | 13511 | ||
| 13540 | DEFUN ("w32-select-font", Fw32_select_font, Sw32_select_font, 0, 1, 0, | 13512 | DEFUN ("w32-select-font", Fw32_select_font, Sw32_select_font, 0, 1, 0, |
| 13541 | "This will display the W32 font dialog and return an X font string corresponding to the selection.") | 13513 | doc: /* Select a font using the W32 font dialog. |
| 13514 | Returns an X font string corresponding to the selection. */) | ||
| 13542 | (frame) | 13515 | (frame) |
| 13543 | Lisp_Object frame; | 13516 | Lisp_Object frame; |
| 13544 | { | 13517 | { |
| @@ -13582,14 +13555,15 @@ DEFUN ("w32-select-font", Fw32_select_font, Sw32_select_font, 0, 1, 0, | |||
| 13582 | return build_string (buf); | 13555 | return build_string (buf); |
| 13583 | } | 13556 | } |
| 13584 | 13557 | ||
| 13585 | DEFUN ("w32-send-sys-command", Fw32_send_sys_command, Sw32_send_sys_command, 1, 2, 0, | 13558 | DEFUN ("w32-send-sys-command", Fw32_send_sys_command, |
| 13586 | "Send frame a Windows WM_SYSCOMMAND message of type COMMAND.\n\ | 13559 | Sw32_send_sys_command, 1, 2, 0, |
| 13587 | Some useful values for command are 0xf030 to maximise frame (0xf020\n\ | 13560 | doc: /* Send frame a Windows WM_SYSCOMMAND message of type COMMAND. |
| 13588 | to minimize), 0xf120 to restore frame to original size, and 0xf100\n\ | 13561 | Some useful values for command are 0xf030 to maximise frame (0xf020 |
| 13589 | to activate the menubar for keyboard access. 0xf140 activates the\n\ | 13562 | to minimize), 0xf120 to restore frame to original size, and 0xf100 |
| 13590 | screen saver if defined.\n\ | 13563 | to activate the menubar for keyboard access. 0xf140 activates the |
| 13591 | \n\ | 13564 | screen saver if defined. |
| 13592 | If optional parameter FRAME is not specified, use selected frame.") | 13565 | |
| 13566 | If optional parameter FRAME is not specified, use selected frame. */) | ||
| 13593 | (command, frame) | 13567 | (command, frame) |
| 13594 | Lisp_Object command, frame; | 13568 | Lisp_Object command, frame; |
| 13595 | { | 13569 | { |
| @@ -13603,25 +13577,25 @@ If optional parameter FRAME is not specified, use selected frame.") | |||
| 13603 | } | 13577 | } |
| 13604 | 13578 | ||
| 13605 | DEFUN ("w32-shell-execute", Fw32_shell_execute, Sw32_shell_execute, 2, 4, 0, | 13579 | DEFUN ("w32-shell-execute", Fw32_shell_execute, Sw32_shell_execute, 2, 4, 0, |
| 13606 | "Get Windows to perform OPERATION on DOCUMENT.\n\ | 13580 | doc: /* Get Windows to perform OPERATION on DOCUMENT. |
| 13607 | This is a wrapper around the ShellExecute system function, which\n\ | 13581 | This is a wrapper around the ShellExecute system function, which |
| 13608 | invokes the application registered to handle OPERATION for DOCUMENT.\n\ | 13582 | invokes the application registered to handle OPERATION for DOCUMENT. |
| 13609 | OPERATION is typically \"open\", \"print\" or \"explore\" (but can be\n\ | 13583 | OPERATION is typically \"open\", \"print\" or \"explore\" (but can be |
| 13610 | nil for the default action), and DOCUMENT is typically the name of a\n\ | 13584 | nil for the default action), and DOCUMENT is typically the name of a |
| 13611 | document file or URL, but can also be a program executable to run or\n\ | 13585 | document file or URL, but can also be a program executable to run or |
| 13612 | a directory to open in the Windows Explorer.\n\ | 13586 | a directory to open in the Windows Explorer. |
| 13613 | \n\ | 13587 | |
| 13614 | If DOCUMENT is a program executable, PARAMETERS can be a string\n\ | 13588 | If DOCUMENT is a program executable, PARAMETERS can be a string |
| 13615 | containing command line parameters, but otherwise should be nil.\n\ | 13589 | containing command line parameters, but otherwise should be nil. |
| 13616 | \n\ | 13590 | |
| 13617 | SHOW-FLAG can be used to control whether the invoked application is hidden\n\ | 13591 | SHOW-FLAG can be used to control whether the invoked application is hidden |
| 13618 | or minimized. If SHOW-FLAG is nil, the application is displayed normally,\n\ | 13592 | or minimized. If SHOW-FLAG is nil, the application is displayed normally, |
| 13619 | otherwise it is an integer representing a ShowWindow flag:\n\ | 13593 | otherwise it is an integer representing a ShowWindow flag: |
| 13620 | \n\ | 13594 | |
| 13621 | 0 - start hidden\n\ | 13595 | 0 - start hidden |
| 13622 | 1 - start normally\n\ | 13596 | 1 - start normally |
| 13623 | 3 - start maximized\n\ | 13597 | 3 - start maximized |
| 13624 | 6 - start minimized") | 13598 | 6 - start minimized */) |
| 13625 | (operation, document, parameters, show_flag) | 13599 | (operation, document, parameters, show_flag) |
| 13626 | Lisp_Object operation, document, parameters, show_flag; | 13600 | Lisp_Object operation, document, parameters, show_flag; |
| 13627 | { | 13601 | { |
| @@ -13733,19 +13707,20 @@ w32_parse_hot_key (key) | |||
| 13733 | return HOTKEY (vk_code, w32_modifiers); | 13707 | return HOTKEY (vk_code, w32_modifiers); |
| 13734 | } | 13708 | } |
| 13735 | 13709 | ||
| 13736 | DEFUN ("w32-register-hot-key", Fw32_register_hot_key, Sw32_register_hot_key, 1, 1, 0, | 13710 | DEFUN ("w32-register-hot-key", Fw32_register_hot_key, |
| 13737 | "Register KEY as a hot-key combination.\n\ | 13711 | Sw32_register_hot_key, 1, 1, 0, |
| 13738 | Certain key combinations like Alt-Tab are reserved for system use on\n\ | 13712 | doc: /* Register KEY as a hot-key combination. |
| 13739 | Windows, and therefore are normally intercepted by the system. However,\n\ | 13713 | Certain key combinations like Alt-Tab are reserved for system use on |
| 13740 | most of these key combinations can be received by registering them as\n\ | 13714 | Windows, and therefore are normally intercepted by the system. However, |
| 13741 | hot-keys, overriding their special meaning.\n\ | 13715 | most of these key combinations can be received by registering them as |
| 13742 | \n\ | 13716 | hot-keys, overriding their special meaning. |
| 13743 | KEY must be a one element key definition in vector form that would be\n\ | 13717 | |
| 13744 | acceptable to `define-key' (e.g. [A-tab] for Alt-Tab). The meta\n\ | 13718 | KEY must be a one element key definition in vector form that would be |
| 13745 | modifier is interpreted as Alt if `w32-alt-is-meta' is t, and hyper\n\ | 13719 | acceptable to `define-key' (e.g. [A-tab] for Alt-Tab). The meta |
| 13746 | is always interpreted as the Windows modifier keys.\n\ | 13720 | modifier is interpreted as Alt if `w32-alt-is-meta' is t, and hyper |
| 13747 | \n\ | 13721 | is always interpreted as the Windows modifier keys. |
| 13748 | The return value is the hotkey-id if registered, otherwise nil.") | 13722 | |
| 13723 | The return value is the hotkey-id if registered, otherwise nil. */) | ||
| 13749 | (key) | 13724 | (key) |
| 13750 | Lisp_Object key; | 13725 | Lisp_Object key; |
| 13751 | { | 13726 | { |
| @@ -13771,8 +13746,9 @@ The return value is the hotkey-id if registered, otherwise nil.") | |||
| 13771 | return key; | 13746 | return key; |
| 13772 | } | 13747 | } |
| 13773 | 13748 | ||
| 13774 | DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, Sw32_unregister_hot_key, 1, 1, 0, | 13749 | DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, |
| 13775 | "Unregister HOTKEY as a hot-key combination.") | 13750 | Sw32_unregister_hot_key, 1, 1, 0, |
| 13751 | doc: /* Unregister HOTKEY as a hot-key combination. */) | ||
| 13776 | (key) | 13752 | (key) |
| 13777 | Lisp_Object key; | 13753 | Lisp_Object key; |
| 13778 | { | 13754 | { |
| @@ -13798,15 +13774,17 @@ DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, Sw32_unregister_hot_ke | |||
| 13798 | return Qnil; | 13774 | return Qnil; |
| 13799 | } | 13775 | } |
| 13800 | 13776 | ||
| 13801 | DEFUN ("w32-registered-hot-keys", Fw32_registered_hot_keys, Sw32_registered_hot_keys, 0, 0, 0, | 13777 | DEFUN ("w32-registered-hot-keys", Fw32_registered_hot_keys, |
| 13802 | "Return list of registered hot-key IDs.") | 13778 | Sw32_registered_hot_keys, 0, 0, 0, |
| 13779 | doc: /* Return list of registered hot-key IDs. */) | ||
| 13803 | () | 13780 | () |
| 13804 | { | 13781 | { |
| 13805 | return Fcopy_sequence (w32_grabbed_keys); | 13782 | return Fcopy_sequence (w32_grabbed_keys); |
| 13806 | } | 13783 | } |
| 13807 | 13784 | ||
| 13808 | DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, Sw32_reconstruct_hot_key, 1, 1, 0, | 13785 | DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, |
| 13809 | "Convert hot-key ID to a lisp key combination.") | 13786 | Sw32_reconstruct_hot_key, 1, 1, 0, |
| 13787 | doc: /* Convert hot-key ID to a lisp key combination. */) | ||
| 13810 | (hotkeyid) | 13788 | (hotkeyid) |
| 13811 | Lisp_Object hotkeyid; | 13789 | Lisp_Object hotkeyid; |
| 13812 | { | 13790 | { |
| @@ -13836,11 +13814,12 @@ DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, Sw32_reconstruct_hot | |||
| 13836 | return key; | 13814 | return key; |
| 13837 | } | 13815 | } |
| 13838 | 13816 | ||
| 13839 | DEFUN ("w32-toggle-lock-key", Fw32_toggle_lock_key, Sw32_toggle_lock_key, 1, 2, 0, | 13817 | DEFUN ("w32-toggle-lock-key", Fw32_toggle_lock_key, |
| 13840 | "Toggle the state of the lock key KEY.\n\ | 13818 | Sw32_toggle_lock_key, 1, 2, 0, |
| 13841 | KEY can be `capslock', `kp-numlock', or `scroll'.\n\ | 13819 | doc: /* Toggle the state of the lock key KEY. |
| 13842 | If the optional parameter NEW-STATE is a number, then the state of KEY\n\ | 13820 | KEY can be `capslock', `kp-numlock', or `scroll'. |
| 13843 | is set to off if the low bit of NEW-STATE is zero, otherwise on.") | 13821 | If the optional parameter NEW-STATE is a number, then the state of KEY |
| 13822 | is set to off if the low bit of NEW-STATE is zero, otherwise on. */) | ||
| 13844 | (key, new_state) | 13823 | (key, new_state) |
| 13845 | Lisp_Object key, new_state; | 13824 | Lisp_Object key, new_state; |
| 13846 | { | 13825 | { |
| @@ -13869,11 +13848,11 @@ is set to off if the low bit of NEW-STATE is zero, otherwise on.") | |||
| 13869 | } | 13848 | } |
| 13870 | 13849 | ||
| 13871 | DEFUN ("file-system-info", Ffile_system_info, Sfile_system_info, 1, 1, 0, | 13850 | DEFUN ("file-system-info", Ffile_system_info, Sfile_system_info, 1, 1, 0, |
| 13872 | "Return storage information about the file system FILENAME is on.\n\ | 13851 | doc: /* Return storage information about the file system FILENAME is on. |
| 13873 | Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total\n\ | 13852 | Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total |
| 13874 | storage of the file system, FREE is the free storage, and AVAIL is the\n\ | 13853 | storage of the file system, FREE is the free storage, and AVAIL is the |
| 13875 | storage available to a non-superuser. All 3 numbers are in bytes.\n\ | 13854 | storage available to a non-superuser. All 3 numbers are in bytes. |
| 13876 | If the underlying system call fails, value is nil.") | 13855 | If the underlying system call fails, value is nil. */) |
| 13877 | (filename) | 13856 | (filename) |
| 13878 | Lisp_Object filename; | 13857 | Lisp_Object filename; |
| 13879 | { | 13858 | { |
| @@ -14086,136 +14065,136 @@ syms_of_w32fns () | |||
| 14086 | w32_grabbed_keys = Qnil; | 14065 | w32_grabbed_keys = Qnil; |
| 14087 | 14066 | ||
| 14088 | DEFVAR_LISP ("w32-color-map", &Vw32_color_map, | 14067 | DEFVAR_LISP ("w32-color-map", &Vw32_color_map, |
| 14089 | "An array of color name mappings for windows."); | 14068 | doc: /* An array of color name mappings for windows. */); |
| 14090 | Vw32_color_map = Qnil; | 14069 | Vw32_color_map = Qnil; |
| 14091 | 14070 | ||
| 14092 | DEFVAR_LISP ("w32-pass-alt-to-system", &Vw32_pass_alt_to_system, | 14071 | DEFVAR_LISP ("w32-pass-alt-to-system", &Vw32_pass_alt_to_system, |
| 14093 | "Non-nil if alt key presses are passed on to Windows.\n\ | 14072 | doc: /* Non-nil if alt key presses are passed on to Windows. |
| 14094 | When non-nil, for example, alt pressed and released and then space will\n\ | 14073 | When non-nil, for example, alt pressed and released and then space will |
| 14095 | open the System menu. When nil, Emacs silently swallows alt key events."); | 14074 | open the System menu. When nil, Emacs silently swallows alt key events. */); |
| 14096 | Vw32_pass_alt_to_system = Qnil; | 14075 | Vw32_pass_alt_to_system = Qnil; |
| 14097 | 14076 | ||
| 14098 | DEFVAR_LISP ("w32-alt-is-meta", &Vw32_alt_is_meta, | 14077 | DEFVAR_LISP ("w32-alt-is-meta", &Vw32_alt_is_meta, |
| 14099 | "Non-nil if the alt key is to be considered the same as the meta key.\n\ | 14078 | doc: /* Non-nil if the alt key is to be considered the same as the meta key. |
| 14100 | When nil, Emacs will translate the alt key to the Alt modifier, and not Meta."); | 14079 | When nil, Emacs will translate the alt key to the Alt modifier, and not Meta. */); |
| 14101 | Vw32_alt_is_meta = Qt; | 14080 | Vw32_alt_is_meta = Qt; |
| 14102 | 14081 | ||
| 14103 | DEFVAR_INT ("w32-quit-key", &Vw32_quit_key, | 14082 | DEFVAR_INT ("w32-quit-key", &Vw32_quit_key, |
| 14104 | "If non-zero, the virtual key code for an alternative quit key."); | 14083 | doc: /* If non-zero, the virtual key code for an alternative quit key. */); |
| 14105 | XSETINT (Vw32_quit_key, 0); | 14084 | XSETINT (Vw32_quit_key, 0); |
| 14106 | 14085 | ||
| 14107 | DEFVAR_LISP ("w32-pass-lwindow-to-system", | 14086 | DEFVAR_LISP ("w32-pass-lwindow-to-system", |
| 14108 | &Vw32_pass_lwindow_to_system, | 14087 | &Vw32_pass_lwindow_to_system, |
| 14109 | "Non-nil if the left \"Windows\" key is passed on to Windows.\n\ | 14088 | doc: /* Non-nil if the left \"Windows\" key is passed on to Windows. |
| 14110 | When non-nil, the Start menu is opened by tapping the key."); | 14089 | When non-nil, the Start menu is opened by tapping the key. */); |
| 14111 | Vw32_pass_lwindow_to_system = Qt; | 14090 | Vw32_pass_lwindow_to_system = Qt; |
| 14112 | 14091 | ||
| 14113 | DEFVAR_LISP ("w32-pass-rwindow-to-system", | 14092 | DEFVAR_LISP ("w32-pass-rwindow-to-system", |
| 14114 | &Vw32_pass_rwindow_to_system, | 14093 | &Vw32_pass_rwindow_to_system, |
| 14115 | "Non-nil if the right \"Windows\" key is passed on to Windows.\n\ | 14094 | doc: /* Non-nil if the right \"Windows\" key is passed on to Windows. |
| 14116 | When non-nil, the Start menu is opened by tapping the key."); | 14095 | When non-nil, the Start menu is opened by tapping the key. */); |
| 14117 | Vw32_pass_rwindow_to_system = Qt; | 14096 | Vw32_pass_rwindow_to_system = Qt; |
| 14118 | 14097 | ||
| 14119 | DEFVAR_INT ("w32-phantom-key-code", | 14098 | DEFVAR_INT ("w32-phantom-key-code", |
| 14120 | &Vw32_phantom_key_code, | 14099 | &Vw32_phantom_key_code, |
| 14121 | "Virtual key code used to generate \"phantom\" key presses.\n\ | 14100 | doc: /* Virtual key code used to generate \"phantom\" key presses. |
| 14122 | Value is a number between 0 and 255.\n\ | 14101 | Value is a number between 0 and 255. |
| 14123 | \n\ | 14102 | |
| 14124 | Phantom key presses are generated in order to stop the system from\n\ | 14103 | Phantom key presses are generated in order to stop the system from |
| 14125 | acting on \"Windows\" key events when `w32-pass-lwindow-to-system' or\n\ | 14104 | acting on \"Windows\" key events when `w32-pass-lwindow-to-system' or |
| 14126 | `w32-pass-rwindow-to-system' is nil."); | 14105 | `w32-pass-rwindow-to-system' is nil. */); |
| 14127 | /* Although 255 is technically not a valid key code, it works and | 14106 | /* Although 255 is technically not a valid key code, it works and |
| 14128 | means that this hack won't interfere with any real key code. */ | 14107 | means that this hack won't interfere with any real key code. */ |
| 14129 | Vw32_phantom_key_code = 255; | 14108 | Vw32_phantom_key_code = 255; |
| 14130 | 14109 | ||
| 14131 | DEFVAR_LISP ("w32-enable-num-lock", | 14110 | DEFVAR_LISP ("w32-enable-num-lock", |
| 14132 | &Vw32_enable_num_lock, | 14111 | &Vw32_enable_num_lock, |
| 14133 | "Non-nil if Num Lock should act normally.\n\ | 14112 | doc: /* Non-nil if Num Lock should act normally. |
| 14134 | Set to nil to see Num Lock as the key `kp-numlock'."); | 14113 | Set to nil to see Num Lock as the key `kp-numlock'. */); |
| 14135 | Vw32_enable_num_lock = Qt; | 14114 | Vw32_enable_num_lock = Qt; |
| 14136 | 14115 | ||
| 14137 | DEFVAR_LISP ("w32-enable-caps-lock", | 14116 | DEFVAR_LISP ("w32-enable-caps-lock", |
| 14138 | &Vw32_enable_caps_lock, | 14117 | &Vw32_enable_caps_lock, |
| 14139 | "Non-nil if Caps Lock should act normally.\n\ | 14118 | doc: /* Non-nil if Caps Lock should act normally. |
| 14140 | Set to nil to see Caps Lock as the key `capslock'."); | 14119 | Set to nil to see Caps Lock as the key `capslock'. */); |
| 14141 | Vw32_enable_caps_lock = Qt; | 14120 | Vw32_enable_caps_lock = Qt; |
| 14142 | 14121 | ||
| 14143 | DEFVAR_LISP ("w32-scroll-lock-modifier", | 14122 | DEFVAR_LISP ("w32-scroll-lock-modifier", |
| 14144 | &Vw32_scroll_lock_modifier, | 14123 | &Vw32_scroll_lock_modifier, |
| 14145 | "Modifier to use for the Scroll Lock on state.\n\ | 14124 | doc: /* Modifier to use for the Scroll Lock on state. |
| 14146 | The value can be hyper, super, meta, alt, control or shift for the\n\ | 14125 | The value can be hyper, super, meta, alt, control or shift for the |
| 14147 | respective modifier, or nil to see Scroll Lock as the key `scroll'.\n\ | 14126 | respective modifier, or nil to see Scroll Lock as the key `scroll'. |
| 14148 | Any other value will cause the key to be ignored."); | 14127 | Any other value will cause the key to be ignored. */); |
| 14149 | Vw32_scroll_lock_modifier = Qt; | 14128 | Vw32_scroll_lock_modifier = Qt; |
| 14150 | 14129 | ||
| 14151 | DEFVAR_LISP ("w32-lwindow-modifier", | 14130 | DEFVAR_LISP ("w32-lwindow-modifier", |
| 14152 | &Vw32_lwindow_modifier, | 14131 | &Vw32_lwindow_modifier, |
| 14153 | "Modifier to use for the left \"Windows\" key.\n\ | 14132 | doc: /* Modifier to use for the left \"Windows\" key. |
| 14154 | The value can be hyper, super, meta, alt, control or shift for the\n\ | 14133 | The value can be hyper, super, meta, alt, control or shift for the |
| 14155 | respective modifier, or nil to appear as the key `lwindow'.\n\ | 14134 | respective modifier, or nil to appear as the key `lwindow'. |
| 14156 | Any other value will cause the key to be ignored."); | 14135 | Any other value will cause the key to be ignored. */); |
| 14157 | Vw32_lwindow_modifier = Qnil; | 14136 | Vw32_lwindow_modifier = Qnil; |
| 14158 | 14137 | ||
| 14159 | DEFVAR_LISP ("w32-rwindow-modifier", | 14138 | DEFVAR_LISP ("w32-rwindow-modifier", |
| 14160 | &Vw32_rwindow_modifier, | 14139 | &Vw32_rwindow_modifier, |
| 14161 | "Modifier to use for the right \"Windows\" key.\n\ | 14140 | doc: /* Modifier to use for the right \"Windows\" key. |
| 14162 | The value can be hyper, super, meta, alt, control or shift for the\n\ | 14141 | The value can be hyper, super, meta, alt, control or shift for the |
| 14163 | respective modifier, or nil to appear as the key `rwindow'.\n\ | 14142 | respective modifier, or nil to appear as the key `rwindow'. |
| 14164 | Any other value will cause the key to be ignored."); | 14143 | Any other value will cause the key to be ignored. */); |
| 14165 | Vw32_rwindow_modifier = Qnil; | 14144 | Vw32_rwindow_modifier = Qnil; |
| 14166 | 14145 | ||
| 14167 | DEFVAR_LISP ("w32-apps-modifier", | 14146 | DEFVAR_LISP ("w32-apps-modifier", |
| 14168 | &Vw32_apps_modifier, | 14147 | &Vw32_apps_modifier, |
| 14169 | "Modifier to use for the \"Apps\" key.\n\ | 14148 | doc: /* Modifier to use for the \"Apps\" key. |
| 14170 | The value can be hyper, super, meta, alt, control or shift for the\n\ | 14149 | The value can be hyper, super, meta, alt, control or shift for the |
| 14171 | respective modifier, or nil to appear as the key `apps'.\n\ | 14150 | respective modifier, or nil to appear as the key `apps'. |
| 14172 | Any other value will cause the key to be ignored."); | 14151 | Any other value will cause the key to be ignored. */); |
| 14173 | Vw32_apps_modifier = Qnil; | 14152 | Vw32_apps_modifier = Qnil; |
| 14174 | 14153 | ||
| 14175 | DEFVAR_LISP ("w32-enable-synthesized-fonts", &Vw32_enable_synthesized_fonts, | 14154 | DEFVAR_LISP ("w32-enable-synthesized-fonts", &Vw32_enable_synthesized_fonts, |
| 14176 | "Non-nil enables selection of artificially italicized and bold fonts."); | 14155 | doc: /* Non-nil enables selection of artificially italicized and bold fonts. */); |
| 14177 | Vw32_enable_synthesized_fonts = Qnil; | 14156 | Vw32_enable_synthesized_fonts = Qnil; |
| 14178 | 14157 | ||
| 14179 | DEFVAR_LISP ("w32-enable-palette", &Vw32_enable_palette, | 14158 | DEFVAR_LISP ("w32-enable-palette", &Vw32_enable_palette, |
| 14180 | "Non-nil enables Windows palette management to map colors exactly."); | 14159 | doc: /* Non-nil enables Windows palette management to map colors exactly. */); |
| 14181 | Vw32_enable_palette = Qt; | 14160 | Vw32_enable_palette = Qt; |
| 14182 | 14161 | ||
| 14183 | DEFVAR_INT ("w32-mouse-button-tolerance", | 14162 | DEFVAR_INT ("w32-mouse-button-tolerance", |
| 14184 | &Vw32_mouse_button_tolerance, | 14163 | &Vw32_mouse_button_tolerance, |
| 14185 | "Analogue of double click interval for faking middle mouse events.\n\ | 14164 | doc: /* Analogue of double click interval for faking middle mouse events. |
| 14186 | The value is the minimum time in milliseconds that must elapse between\n\ | 14165 | The value is the minimum time in milliseconds that must elapse between |
| 14187 | left/right button down events before they are considered distinct events.\n\ | 14166 | left/right button down events before they are considered distinct events. |
| 14188 | If both mouse buttons are depressed within this interval, a middle mouse\n\ | 14167 | If both mouse buttons are depressed within this interval, a middle mouse |
| 14189 | button down event is generated instead."); | 14168 | button down event is generated instead. */); |
| 14190 | XSETINT (Vw32_mouse_button_tolerance, GetDoubleClickTime () / 2); | 14169 | XSETINT (Vw32_mouse_button_tolerance, GetDoubleClickTime () / 2); |
| 14191 | 14170 | ||
| 14192 | DEFVAR_INT ("w32-mouse-move-interval", | 14171 | DEFVAR_INT ("w32-mouse-move-interval", |
| 14193 | &Vw32_mouse_move_interval, | 14172 | &Vw32_mouse_move_interval, |
| 14194 | "Minimum interval between mouse move events.\n\ | 14173 | doc: /* Minimum interval between mouse move events. |
| 14195 | The value is the minimum time in milliseconds that must elapse between\n\ | 14174 | The value is the minimum time in milliseconds that must elapse between |
| 14196 | successive mouse move (or scroll bar drag) events before they are\n\ | 14175 | successive mouse move (or scroll bar drag) events before they are |
| 14197 | reported as lisp events."); | 14176 | reported as lisp events. */); |
| 14198 | XSETINT (Vw32_mouse_move_interval, 0); | 14177 | XSETINT (Vw32_mouse_move_interval, 0); |
| 14199 | 14178 | ||
| 14200 | init_x_parm_symbols (); | 14179 | init_x_parm_symbols (); |
| 14201 | 14180 | ||
| 14202 | DEFVAR_LISP ("x-bitmap-file-path", &Vx_bitmap_file_path, | 14181 | DEFVAR_LISP ("x-bitmap-file-path", &Vx_bitmap_file_path, |
| 14203 | "List of directories to search for bitmap files for w32."); | 14182 | doc: /* List of directories to search for bitmap files for w32. */); |
| 14204 | Vx_bitmap_file_path = decode_env_path ((char *) 0, "PATH"); | 14183 | Vx_bitmap_file_path = decode_env_path ((char *) 0, "PATH"); |
| 14205 | 14184 | ||
| 14206 | DEFVAR_LISP ("x-pointer-shape", &Vx_pointer_shape, | 14185 | DEFVAR_LISP ("x-pointer-shape", &Vx_pointer_shape, |
| 14207 | "The shape of the pointer when over text.\n\ | 14186 | doc: /* The shape of the pointer when over text. |
| 14208 | Changing the value does not affect existing frames\n\ | 14187 | Changing the value does not affect existing frames |
| 14209 | unless you set the mouse color."); | 14188 | unless you set the mouse color. */); |
| 14210 | Vx_pointer_shape = Qnil; | 14189 | Vx_pointer_shape = Qnil; |
| 14211 | 14190 | ||
| 14212 | DEFVAR_LISP ("x-resource-name", &Vx_resource_name, | 14191 | DEFVAR_LISP ("x-resource-name", &Vx_resource_name, |
| 14213 | "The name Emacs uses to look up resources; for internal use only.\n\ | 14192 | doc: /* The name Emacs uses to look up resources; for internal use only. |
| 14214 | `x-get-resource' uses this as the first component of the instance name\n\ | 14193 | `x-get-resource' uses this as the first component of the instance name |
| 14215 | when requesting resource values.\n\ | 14194 | when requesting resource values. |
| 14216 | Emacs initially sets `x-resource-name' to the name under which Emacs\n\ | 14195 | Emacs initially sets `x-resource-name' to the name under which Emacs |
| 14217 | was invoked, or to the value specified with the `-name' or `-rn'\n\ | 14196 | was invoked, or to the value specified with the `-name' or `-rn' |
| 14218 | switches, if present."); | 14197 | switches, if present. */); |
| 14219 | Vx_resource_name = Qnil; | 14198 | Vx_resource_name = Qnil; |
| 14220 | 14199 | ||
| 14221 | Vx_nontext_pointer_shape = Qnil; | 14200 | Vx_nontext_pointer_shape = Qnil; |
| @@ -14223,121 +14202,121 @@ switches, if present."); | |||
| 14223 | Vx_mode_pointer_shape = Qnil; | 14202 | Vx_mode_pointer_shape = Qnil; |
| 14224 | 14203 | ||
| 14225 | DEFVAR_LISP ("x-hourglass-pointer-shape", &Vx_hourglass_pointer_shape, | 14204 | DEFVAR_LISP ("x-hourglass-pointer-shape", &Vx_hourglass_pointer_shape, |
| 14226 | "The shape of the pointer when Emacs is busy.\n\ | 14205 | doc: /* The shape of the pointer when Emacs is busy. |
| 14227 | This variable takes effect when you create a new frame\n\ | 14206 | This variable takes effect when you create a new frame |
| 14228 | or when you set the mouse color."); | 14207 | or when you set the mouse color. */); |
| 14229 | Vx_hourglass_pointer_shape = Qnil; | 14208 | Vx_hourglass_pointer_shape = Qnil; |
| 14230 | 14209 | ||
| 14231 | DEFVAR_BOOL ("display-hourglass", &display_hourglass_p, | 14210 | DEFVAR_BOOL ("display-hourglass", &display_hourglass_p, |
| 14232 | "Non-zero means Emacs displays an hourglass pointer on window systems."); | 14211 | doc: /* Non-zero means Emacs displays an hourglass pointer on window systems. */); |
| 14233 | display_hourglass_p = 1; | 14212 | display_hourglass_p = 1; |
| 14234 | 14213 | ||
| 14235 | DEFVAR_LISP ("hourglass-delay", &Vhourglass_delay, | 14214 | DEFVAR_LISP ("hourglass-delay", &Vhourglass_delay, |
| 14236 | "*Seconds to wait before displaying an hourglass pointer.\n\ | 14215 | doc: /* *Seconds to wait before displaying an hourglass pointer. |
| 14237 | Value must be an integer or float."); | 14216 | Value must be an integer or float. */); |
| 14238 | Vhourglass_delay = make_number (DEFAULT_HOURGLASS_DELAY); | 14217 | Vhourglass_delay = make_number (DEFAULT_HOURGLASS_DELAY); |
| 14239 | 14218 | ||
| 14240 | DEFVAR_LISP ("x-sensitive-text-pointer-shape", | 14219 | DEFVAR_LISP ("x-sensitive-text-pointer-shape", |
| 14241 | &Vx_sensitive_text_pointer_shape, | 14220 | &Vx_sensitive_text_pointer_shape, |
| 14242 | "The shape of the pointer when over mouse-sensitive text.\n\ | 14221 | doc: /* The shape of the pointer when over mouse-sensitive text. |
| 14243 | This variable takes effect when you create a new frame\n\ | 14222 | This variable takes effect when you create a new frame |
| 14244 | or when you set the mouse color."); | 14223 | or when you set the mouse color. */); |
| 14245 | Vx_sensitive_text_pointer_shape = Qnil; | 14224 | Vx_sensitive_text_pointer_shape = Qnil; |
| 14246 | 14225 | ||
| 14247 | DEFVAR_LISP ("x-window-horizontal-drag-cursor", | 14226 | DEFVAR_LISP ("x-window-horizontal-drag-cursor", |
| 14248 | &Vx_window_horizontal_drag_shape, | 14227 | &Vx_window_horizontal_drag_shape, |
| 14249 | "Pointer shape to use for indicating a window can be dragged horizontally.\n\ | 14228 | doc: /* Pointer shape to use for indicating a window can be dragged horizontally. |
| 14250 | This variable takes effect when you create a new frame\n\ | 14229 | This variable takes effect when you create a new frame |
| 14251 | or when you set the mouse color."); | 14230 | or when you set the mouse color. */); |
| 14252 | Vx_window_horizontal_drag_shape = Qnil; | 14231 | Vx_window_horizontal_drag_shape = Qnil; |
| 14253 | 14232 | ||
| 14254 | DEFVAR_LISP ("x-cursor-fore-pixel", &Vx_cursor_fore_pixel, | 14233 | DEFVAR_LISP ("x-cursor-fore-pixel", &Vx_cursor_fore_pixel, |
| 14255 | "A string indicating the foreground color of the cursor box."); | 14234 | doc: /* A string indicating the foreground color of the cursor box. */); |
| 14256 | Vx_cursor_fore_pixel = Qnil; | 14235 | Vx_cursor_fore_pixel = Qnil; |
| 14257 | 14236 | ||
| 14258 | DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size, | 14237 | DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size, |
| 14259 | "Maximum size for tooltips. Value is a pair (COLUMNS . ROWS).\n\ | 14238 | doc: /* Maximum size for tooltips. Value is a pair (COLUMNS . ROWS). |
| 14260 | Text larger than this is clipped."); | 14239 | Text larger than this is clipped. */); |
| 14261 | Vx_max_tooltip_size = Fcons (make_number (80), make_number (40)); | 14240 | Vx_max_tooltip_size = Fcons (make_number (80), make_number (40)); |
| 14262 | 14241 | ||
| 14263 | DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager, | 14242 | DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager, |
| 14264 | "Non-nil if no window manager is in use.\n\ | 14243 | doc: /* Non-nil if no window manager is in use. |
| 14265 | Emacs doesn't try to figure this out; this is always nil\n\ | 14244 | Emacs doesn't try to figure this out; this is always nil |
| 14266 | unless you set it to something else."); | 14245 | unless you set it to something else. */); |
| 14267 | /* We don't have any way to find this out, so set it to nil | 14246 | /* We don't have any way to find this out, so set it to nil |
| 14268 | and maybe the user would like to set it to t. */ | 14247 | and maybe the user would like to set it to t. */ |
| 14269 | Vx_no_window_manager = Qnil; | 14248 | Vx_no_window_manager = Qnil; |
| 14270 | 14249 | ||
| 14271 | DEFVAR_LISP ("x-pixel-size-width-font-regexp", | 14250 | DEFVAR_LISP ("x-pixel-size-width-font-regexp", |
| 14272 | &Vx_pixel_size_width_font_regexp, | 14251 | &Vx_pixel_size_width_font_regexp, |
| 14273 | "Regexp matching a font name whose width is the same as `PIXEL_SIZE'.\n\ | 14252 | doc: /* Regexp matching a font name whose width is the same as `PIXEL_SIZE'. |
| 14274 | \n\ | 14253 | |
| 14275 | Since Emacs gets width of a font matching with this regexp from\n\ | 14254 | Since Emacs gets width of a font matching with this regexp from |
| 14276 | PIXEL_SIZE field of the name, font finding mechanism gets faster for\n\ | 14255 | PIXEL_SIZE field of the name, font finding mechanism gets faster for |
| 14277 | such a font. This is especially effective for such large fonts as\n\ | 14256 | such a font. This is especially effective for such large fonts as |
| 14278 | Chinese, Japanese, and Korean."); | 14257 | Chinese, Japanese, and Korean. */); |
| 14279 | Vx_pixel_size_width_font_regexp = Qnil; | 14258 | Vx_pixel_size_width_font_regexp = Qnil; |
| 14280 | 14259 | ||
| 14281 | DEFVAR_LISP ("image-cache-eviction-delay", &Vimage_cache_eviction_delay, | 14260 | DEFVAR_LISP ("image-cache-eviction-delay", &Vimage_cache_eviction_delay, |
| 14282 | "Time after which cached images are removed from the cache.\n\ | 14261 | doc: /* Time after which cached images are removed from the cache. |
| 14283 | When an image has not been displayed this many seconds, remove it\n\ | 14262 | When an image has not been displayed this many seconds, remove it |
| 14284 | from the image cache. Value must be an integer or nil with nil\n\ | 14263 | from the image cache. Value must be an integer or nil with nil |
| 14285 | meaning don't clear the cache."); | 14264 | meaning don't clear the cache. */); |
| 14286 | Vimage_cache_eviction_delay = make_number (30 * 60); | 14265 | Vimage_cache_eviction_delay = make_number (30 * 60); |
| 14287 | 14266 | ||
| 14288 | DEFVAR_LISP ("w32-bdf-filename-alist", | 14267 | DEFVAR_LISP ("w32-bdf-filename-alist", |
| 14289 | &Vw32_bdf_filename_alist, | 14268 | &Vw32_bdf_filename_alist, |
| 14290 | "List of bdf fonts and their corresponding filenames."); | 14269 | doc: /* List of bdf fonts and their corresponding filenames. */); |
| 14291 | Vw32_bdf_filename_alist = Qnil; | 14270 | Vw32_bdf_filename_alist = Qnil; |
| 14292 | 14271 | ||
| 14293 | DEFVAR_BOOL ("w32-strict-fontnames", | 14272 | DEFVAR_BOOL ("w32-strict-fontnames", |
| 14294 | &w32_strict_fontnames, | 14273 | &w32_strict_fontnames, |
| 14295 | "Non-nil means only use fonts that are exact matches for those requested.\n\ | 14274 | doc: /* Non-nil means only use fonts that are exact matches for those requested. |
| 14296 | Default is nil, which allows old fontnames that are not XLFD compliant,\n\ | 14275 | Default is nil, which allows old fontnames that are not XLFD compliant, |
| 14297 | and allows third-party CJK display to work by specifying false charset\n\ | 14276 | and allows third-party CJK display to work by specifying false charset |
| 14298 | fields to trick Emacs into translating to Big5, SJIS etc.\n\ | 14277 | fields to trick Emacs into translating to Big5, SJIS etc. |
| 14299 | Setting this to t will prevent wrong fonts being selected when\n\ | 14278 | Setting this to t will prevent wrong fonts being selected when |
| 14300 | fontsets are automatically created."); | 14279 | fontsets are automatically created. */); |
| 14301 | w32_strict_fontnames = 0; | 14280 | w32_strict_fontnames = 0; |
| 14302 | 14281 | ||
| 14303 | DEFVAR_BOOL ("w32-strict-painting", | 14282 | DEFVAR_BOOL ("w32-strict-painting", |
| 14304 | &w32_strict_painting, | 14283 | &w32_strict_painting, |
| 14305 | "Non-nil means use strict rules for repainting frames.\n\ | 14284 | doc: /* Non-nil means use strict rules for repainting frames. |
| 14306 | Set this to nil to get the old behaviour for repainting; this should\n\ | 14285 | Set this to nil to get the old behaviour for repainting; this should |
| 14307 | only be necessary if the default setting causes problems."); | 14286 | only be necessary if the default setting causes problems. */); |
| 14308 | w32_strict_painting = 1; | 14287 | w32_strict_painting = 1; |
| 14309 | 14288 | ||
| 14310 | DEFVAR_LISP ("w32-system-coding-system", | 14289 | DEFVAR_LISP ("w32-system-coding-system", |
| 14311 | &Vw32_system_coding_system, | 14290 | &Vw32_system_coding_system, |
| 14312 | "Coding system used by Windows system functions, such as for font names."); | 14291 | doc: /* Coding system used by Windows system functions, such as for font names. */); |
| 14313 | Vw32_system_coding_system = Qnil; | 14292 | Vw32_system_coding_system = Qnil; |
| 14314 | 14293 | ||
| 14315 | DEFVAR_LISP ("w32-charset-info-alist", | 14294 | DEFVAR_LISP ("w32-charset-info-alist", |
| 14316 | &Vw32_charset_info_alist, | 14295 | &Vw32_charset_info_alist, |
| 14317 | "Alist linking Emacs character sets to Windows fonts\n\ | 14296 | doc: /* Alist linking Emacs character sets to Windows fonts |
| 14318 | and codepages. Each entry should be of the form:\n\ | 14297 | and codepages. Each entry should be of the form: |
| 14319 | \n\ | 14298 | |
| 14320 | (CHARSET_NAME . (WINDOWS_CHARSET . CODEPAGE))\n\ | 14299 | (CHARSET_NAME . (WINDOWS_CHARSET . CODEPAGE)) |
| 14321 | \n\ | 14300 | |
| 14322 | where CHARSET_NAME is a string used in font names to identify the charset,\n\ | 14301 | where CHARSET_NAME is a string used in font names to identify the charset, |
| 14323 | WINDOWS_CHARSET is a symbol that can be one of:\n\ | 14302 | WINDOWS_CHARSET is a symbol that can be one of: |
| 14324 | w32-charset-ansi, w32-charset-default, w32-charset-symbol,\n\ | 14303 | w32-charset-ansi, w32-charset-default, w32-charset-symbol, |
| 14325 | w32-charset-shiftjis, w32-charset-hangeul, w32-charset-gb2312,\n\ | 14304 | w32-charset-shiftjis, w32-charset-hangeul, w32-charset-gb2312, |
| 14326 | w32-charset-chinesebig5, " | 14305 | w32-charset-chinesebig5, |
| 14327 | #ifdef JOHAB_CHARSET | 14306 | #ifdef JOHAB_CHARSET |
| 14328 | "w32-charset-johab, w32-charset-hebrew,\n\ | 14307 | w32-charset-johab, w32-charset-hebrew, |
| 14329 | w32-charset-arabic, w32-charset-greek, w32-charset-turkish,\n\ | 14308 | w32-charset-arabic, w32-charset-greek, w32-charset-turkish, |
| 14330 | w32-charset-vietnamese, w32-charset-thai, w32-charset-easteurope,\n\ | 14309 | w32-charset-vietnamese, w32-charset-thai, w32-charset-easteurope, |
| 14331 | w32-charset-russian, w32-charset-mac, w32-charset-baltic,\n" | 14310 | w32-charset-russian, w32-charset-mac, w32-charset-baltic, |
| 14332 | #endif | 14311 | #endif |
| 14333 | #ifdef UNICODE_CHARSET | 14312 | #ifdef UNICODE_CHARSET |
| 14334 | "w32-charset-unicode, " | 14313 | w32-charset-unicode, |
| 14335 | #endif | 14314 | #endif |
| 14336 | "or w32-charset-oem.\n\ | 14315 | or w32-charset-oem. |
| 14337 | CODEPAGE should be an integer specifying the codepage that should be used\n\ | 14316 | CODEPAGE should be an integer specifying the codepage that should be used |
| 14338 | to display the character set, t to do no translation and output as Unicode,\n\ | 14317 | to display the character set, t to do no translation and output as Unicode, |
| 14339 | or nil to do no translation and output as 8 bit (or multibyte on far-east\n\ | 14318 | or nil to do no translation and output as 8 bit (or multibyte on far-east |
| 14340 | versions of Windows) characters."); | 14319 | versions of Windows) characters. */); |
| 14341 | Vw32_charset_info_alist = Qnil; | 14320 | Vw32_charset_info_alist = Qnil; |
| 14342 | 14321 | ||
| 14343 | staticpro (&Qw32_charset_ansi); | 14322 | staticpro (&Qw32_charset_ansi); |
| @@ -14358,7 +14337,8 @@ versions of Windows) characters."); | |||
| 14358 | #ifdef JOHAB_CHARSET | 14337 | #ifdef JOHAB_CHARSET |
| 14359 | { | 14338 | { |
| 14360 | static int w32_extra_charsets_defined = 1; | 14339 | static int w32_extra_charsets_defined = 1; |
| 14361 | DEFVAR_BOOL ("w32-extra-charsets-defined", &w32_extra_charsets_defined, ""); | 14340 | DEFVAR_BOOL ("w32-extra-charsets-defined", &w32_extra_charsets_defined, |
| 14341 | doc: /* Internal variable. */); | ||
| 14362 | 14342 | ||
| 14363 | staticpro (&Qw32_charset_johab); | 14343 | staticpro (&Qw32_charset_johab); |
| 14364 | Qw32_charset_johab = intern ("w32-charset-johab"); | 14344 | Qw32_charset_johab = intern ("w32-charset-johab"); |
| @@ -14389,7 +14369,8 @@ versions of Windows) characters."); | |||
| 14389 | { | 14369 | { |
| 14390 | static int w32_unicode_charset_defined = 1; | 14370 | static int w32_unicode_charset_defined = 1; |
| 14391 | DEFVAR_BOOL ("w32-unicode-charset-defined", | 14371 | DEFVAR_BOOL ("w32-unicode-charset-defined", |
| 14392 | &w32_unicode_charset_defined, ""); | 14372 | &w32_unicode_charset_defined, |
| 14373 | doc: /* Internal variable. */); | ||
| 14393 | 14374 | ||
| 14394 | staticpro (&Qw32_charset_unicode); | 14375 | staticpro (&Qw32_charset_unicode); |
| 14395 | Qw32_charset_unicode = intern ("w32-charset-unicode"); | 14376 | Qw32_charset_unicode = intern ("w32-charset-unicode"); |