aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2001-11-13 00:02:55 +0000
committerJason Rumney2001-11-13 00:02:55 +0000
commit74e1aeec7fc0aeccde00bf505a8e43e56117d5d2 (patch)
tree7a26d505feb8f4fed7fc6acb0cb13bc91f8b4deb /src
parentd3d268d5f2abd20060a6d47e7c825ceea143df66 (diff)
downloademacs-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.c745
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
57extern void free_frame_menubar (); 55extern void free_frame_menubar ();
58extern double atof (); 56extern double atof ();
59extern int w32_console_toggle_lock_key (int vk_code, Lisp_Object new_state); 57extern 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
1071DEFUN ("w32-define-rgb-color", Fw32_define_rgb_color, Sw32_define_rgb_color, 4, 4, 0, 1069DEFUN ("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,
1073This 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.
1074The original entry's RGB ref is returned, or nil if the entry is new.") 1072This adds or updates a named color to w32-color-map, making it
1073available for use. The original entry's RGB ref is returned, or nil
1074if 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
1109DEFUN ("w32-load-color-file", Fw32_load_color_file, Sw32_load_color_file, 1, 1, 0, 1109DEFUN ("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,
1111Assign 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\ 1112Assign this value to w32-color-map to replace the existing color map.
1113The file should define one named RGB color per line like so:\ 1113
1114 R G B name\n\ 1114The file should define one named RGB color per line like so:
1115where R,G,B are numbers between 0 and 255 and name is an arbitrary string.") 1115 R G B name
1116where 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
1406DEFUN ("w32-default-color-map", Fw32_default_color_map, Sw32_default_color_map, 1407DEFUN ("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 ()
2915extern char *x_get_string_resource (); 2916extern char *x_get_string_resource ();
2916 2917
2917DEFUN ("x-get-resource", Fx_get_resource, Sx_get_resource, 2, 4, 0, 2918DEFUN ("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.
2919This uses `INSTANCE.ATTRIBUTE' as the key and `Emacs.CLASS' as the\n\ 2920This uses `INSTANCE.ATTRIBUTE' as the key and `Emacs.CLASS' as the
2920class, where INSTANCE is the name under which Emacs was invoked, or\n\ 2921class, where INSTANCE is the name under which Emacs was invoked, or
2921the name specified by the `-name' or `-rn' command-line arguments.\n\ 2922the name specified by the `-name' or `-rn' command-line arguments.
2922\n\ 2923
2923The optional arguments COMPONENT and SUBCLASS add to the key and the\n\ 2924The optional arguments COMPONENT and SUBCLASS add to the key and the
2924class, respectively. You must specify both of them or neither.\n\ 2925class, respectively. You must specify both of them or neither.
2925If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE'\n\ 2926If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE'
2926and the class is `Emacs.CLASS.SUBCLASS'.") 2927and 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
3129DEFUN ("x-parse-geometry", Fx_parse_geometry, Sx_parse_geometry, 1, 1, 0, 3130DEFUN ("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.
3131Returns an alist of the form ((top . TOP), (left . LEFT) ... ).\n\ 3132Returns an alist of the form ((top . TOP), (left . LEFT) ... ).
3132The properties returned may include `top', `left', `height', and `width'.\n\ 3133The properties returned may include `top', `left', `height', and `width'.
3133The value of `left' or `top' may be an integer,\n\ 3134The value of `left' or `top' may be an integer,
3134or a list (+ N) meaning N pixels relative to top/left corner,\n\ 3135or a list (+ N) meaning N pixels relative to top/left corner,
3135or a list (- N) meaning -N pixels relative to bottom/right corner.") 3136or 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
5185DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, 5186DEFUN ("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.
5188Returns an Emacs frame object.\n\ 5189Returns an Emacs frame object.
5189ALIST is an alist of frame parameters.\n\ 5190ALIST is an alist of frame parameters.
5190If the parameters specify that the frame should not have a minibuffer,\n\ 5191If the parameters specify that the frame should not have a minibuffer,
5191and do not specify a specific minibuffer window to use,\n\ 5192and do not specify a specific minibuffer window to use,
5192then `default-minibuffer-frame' must be a frame whose minibuffer can\n\ 5193then `default-minibuffer-frame' must be a frame whose minibuffer can
5193be shared by the new frame.\n\ 5194be shared by the new frame.
5194\n\ 5195
5195This function is an internal primitive--use `make-frame' instead.") 5196This 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
5547DEFUN ("w32-focus-frame", Fw32_focus_frame, Sw32_focus_frame, 1, 1, 0, 5548DEFUN ("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
7181DEFUN ("w32-find-bdf-fonts", Fw32_find_bdf_fonts, Sw32_find_bdf_fonts, 7182DEFUN ("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
7184w32-bdf-filename-alist. Fonts which do not contain an xlfd description\n\ 7185w32-bdf-filename-alist. Fonts which do not contain an xlfd description
7185will not be included in the list. DIR may be a list of directories.") 7186will 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
7209DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, 7210DEFUN ("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
7225DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, 7226DEFUN ("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
7251DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, 7252DEFUN ("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
7264DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, Sx_display_grayscale_p, 7265DEFUN ("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.
7267Note that color displays do support shades of gray.\n\ 7268Note that color displays do support shades of gray.
7268The optional argument DISPLAY specifies which display to ask about.\n\ 7269The optional argument DISPLAY specifies which display to ask about.
7269DISPLAY should be either a frame or a display name (a string).\n\ 7270DISPLAY should be either a frame or a display name (a string).
7270If omitted or nil, that stands for the selected frame's display.") 7271If 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
7282DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, 7283DEFUN ("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.
7285The optional argument DISPLAY specifies which display to ask about.\n\ 7286The optional argument DISPLAY specifies which display to ask about.
7286DISPLAY should be either a frame or a display name (a string).\n\ 7287DISPLAY should be either a frame or a display name (a string).
7287If omitted or nil, that stands for the selected frame's display.") 7288If 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
7296DEFUN ("x-display-pixel-height", Fx_display_pixel_height, 7297DEFUN ("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.
7299The optional argument DISPLAY specifies which display to ask about.\n\ 7300The optional argument DISPLAY specifies which display to ask about.
7300DISPLAY should be either a frame or a display name (a string).\n\ 7301DISPLAY should be either a frame or a display name (a string).
7301If omitted or nil, that stands for the selected frame's display.") 7302If 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
7310DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, 7311DEFUN ("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.
7313The optional argument DISPLAY specifies which display to ask about.\n\ 7314The optional argument DISPLAY specifies which display to ask about.
7314DISPLAY should be either a frame or a display name (a string).\n\ 7315DISPLAY should be either a frame or a display name (a string).
7315If omitted or nil, that stands for the selected frame's display.") 7316If 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
7324DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, 7325DEFUN ("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.
7327The optional argument DISPLAY specifies which display to ask about.\n\ 7328The optional argument DISPLAY specifies which display to ask about.
7328DISPLAY should be either a frame or a display name (a string).\n\ 7329DISPLAY should be either a frame or a display name (a string).
7329If omitted or nil, that stands for the selected frame's display.") 7330If 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
7351DEFUN ("x-server-max-request-size", Fx_server_max_request_size, 7352DEFUN ("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.
7355The optional argument DISPLAY specifies which display to ask about.\n\ 7356The optional argument DISPLAY specifies which display to ask about.
7356DISPLAY should be either a frame or a display name (a string).\n\ 7357DISPLAY should be either a frame or a display name (a string).
7357If omitted or nil, that stands for the selected frame's display.") 7358If 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
7366DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, 7367DEFUN ("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).
7368The optional argument DISPLAY specifies which display to ask about.\n\ 7369The optional argument DISPLAY specifies which display to ask about.
7369DISPLAY should be either a frame or a display name (a string).\n\ 7370DISPLAY should be either a frame or a display name (a string).
7370If omitted or nil, that stands for the selected frame's display.") 7371If 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
7377DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, 7378DEFUN ("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.
7379The value is a list of three integers: the major and minor\n\ 7380The value is a list of three integers: the major and minor
7380version numbers, and the vendor-specific release\n\ 7381version numbers, and the vendor-specific release
7381number. See also the function `x-server-vendor'.\n\n\ 7382number. See also the function `x-server-vendor'.
7382The optional argument DISPLAY specifies which display to ask about.\n\ 7383
7383DISPLAY should be either a frame or a display name (a string).\n\ 7384The optional argument DISPLAY specifies which display to ask about.
7384If omitted or nil, that stands for the selected frame's display.") 7385DISPLAY should be either a frame or a display name (a string).
7386If 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
7393DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, 7395DEFUN ("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.
7395The optional argument DISPLAY specifies which display to ask about.\n\ 7397The optional argument DISPLAY specifies which display to ask about.
7396DISPLAY should be either a frame or a display name (a string).\n\ 7398DISPLAY should be either a frame or a display name (a string).
7397If omitted or nil, that stands for the selected frame's display.") 7399If 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
7404DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 0, 1, 0, 7406DEFUN ("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,
7406The optional argument DISPLAY specifies which display to ask about.\n\ 7408 doc: /* Returns the height in millimeters of DISPLAY.
7407DISPLAY should be either a frame or a display name (a string).\n\ 7409The optional argument DISPLAY specifies which display to ask about.
7408If omitted or nil, that stands for the selected frame's display.") 7410DISPLAY should be either a frame or a display name (a string).
7411If 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
7425DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, 7428DEFUN ("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.
7427The optional argument DISPLAY specifies which display to ask about.\n\ 7430The optional argument DISPLAY specifies which display to ask about.
7428DISPLAY should be either a frame or a display name (a string).\n\ 7431DISPLAY should be either a frame or a display name (a string).
7429If omitted or nil, that stands for the selected frame's display.") 7432If 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
7447DEFUN ("x-display-backing-store", Fx_display_backing_store, 7450DEFUN ("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.
7450The value may be `always', `when-mapped', or `not-useful'.\n\ 7453The value may be `always', `when-mapped', or `not-useful'.
7451The optional argument DISPLAY specifies which display to ask about.\n\ 7454The optional argument DISPLAY specifies which display to ask about.
7452DISPLAY should be either a frame or a display name (a string).\n\ 7455DISPLAY should be either a frame or a display name (a string).
7453If omitted or nil, that stands for the selected frame's display.") 7456If 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
7460DEFUN ("x-display-visual-class", Fx_display_visual_class, 7463DEFUN ("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.
7463The value is one of the symbols `static-gray', `gray-scale',\n\ 7466The 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'.
7465The optional argument DISPLAY specifies which display to ask about.\n\ 7468
7466DISPLAY should be either a frame or a display name (a string).\n\ 7469The optional argument DISPLAY specifies which display to ask about.
7467If omitted or nil, that stands for the selected frame's display.") 7470DISPLAY should be either a frame or a display name (a string).
7471If 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
7486DEFUN ("x-display-save-under", Fx_display_save_under, 7490DEFUN ("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.
7489The optional argument DISPLAY specifies which display to ask about.\n\ 7493The optional argument DISPLAY specifies which display to ask about.
7490DISPLAY should be either a frame or a display name (a string).\n\ 7494DISPLAY should be either a frame or a display name (a string).
7491If omitted or nil, that stands for the selected frame's display.") 7495If 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
7572DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection, 7576DEFUN ("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.
7574DISPLAY is the name of the display to connect to.\n\ 7578DISPLAY is the name of the display to connect to.
7575Optional second arg XRM-STRING is a string of resources in xrdb format.\n\ 7579Optional second arg XRM-STRING is a string of resources in xrdb format.
7576If the optional third arg MUST-SUCCEED is non-nil,\n\ 7580If the optional third arg MUST-SUCCEED is non-nil,
7577terminate Emacs if we can't open the connection.") 7581terminate 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
7652DEFUN ("x-close-connection", Fx_close_connection, 7661DEFUN ("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.
7655For DISPLAY, specify either a frame or a display name (a string).\n\ 7664For DISPLAY, specify either a frame or a display name (a string).
7656If DISPLAY is nil, that stands for the selected frame's display.") 7665If 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
7684DEFUN ("x-display-list", Fx_display_list, Sx_display_list, 0, 0, 0, 7693DEFUN ("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
7697DEFUN ("x-synchronize", Fx_synchronize, Sx_synchronize, 1, 2, 0, 7706DEFUN ("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. */)
7699If ON is nil, allow buffering of requests.\n\
7700This is a noop on W32 systems.\n\
7701The optional second argument DISPLAY specifies which display to act on.\n\
7702DISPLAY should be either a frame or a display name (a string).\n\
7703If 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
8368DEFUN ("clear-image-cache", Fclear_image_cache, Sclear_image_cache, 8372DEFUN ("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.
8371FRAME nil or omitted means use the selected frame.\n\ 8375FRAME nil or omitted means use the selected frame.
8372FRAME t means clear the image caches of all frames.") 8376FRAME 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
12462DEFUN ("x-change-window-property", Fx_change_window_property, 12466DEFUN ("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.
12465PROP and VALUE must be strings. FRAME nil or omitted means use the\n\ 12469PROP and VALUE must be strings. FRAME nil or omitted means use the
12466selected frame. Value is VALUE.") 12470selected 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
12493DEFUN ("x-delete-window-property", Fx_delete_window_property, 12497DEFUN ("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.
12496FRAME nil or omitted means use the selected frame. Value is PROP.") 12500FRAME 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
12519DEFUN ("x-window-property", Fx_window_property, Sx_window_property, 12523DEFUN ("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.
12522If FRAME is nil or omitted, use the selected frame. Value is nil\n\ 12526If FRAME is nil or omitted, use the selected frame. Value is nil
12523if FRAME hasn't a property with name PROP or if PROP has no string\n\ 12527if FRAME hasn't a property with name PROP or if PROP has no string
12524value.") 12528value. */)
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. */
13146DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, 13150DEFUN ("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.
13148A tooltip window is a small window displaying a string.\n\ 13152A tooltip window is a small window displaying a string.
13149\n\ 13153
13150FRAME nil or omitted means use the selected frame.\n\ 13154FRAME nil or omitted means use the selected frame.
13151\n\ 13155
13152PARMS is an optional list of frame parameters which can be\n\ 13156PARMS is an optional list of frame parameters which can be
13153used to change the tooltip's appearance.\n\ 13157used to change the tooltip's appearance.
13154\n\ 13158
13155Automatically hide the tooltip after TIMEOUT seconds.\n\ 13159Automatically hide the tooltip after TIMEOUT seconds.
13156TIMEOUT nil means use the default timeout of 5 seconds.\n\ 13160TIMEOUT nil means use the default timeout of 5 seconds.
13157\n\ 13161
13158If the list of frame parameters PARAMS contains a `left' parameters,\n\ 13162If the list of frame parameters PARAMS contains a `left' parameters,
13159the tooltip is displayed at that x-position. Otherwise it is\n\ 13163the tooltip is displayed at that x-position. Otherwise it is
13160displayed at the mouse position, with offset DX added (default is 5 if\n\ 13164displayed at the mouse position, with offset DX added (default is 5 if
13161DX isn't specified). Likewise for the y-position; if a `top' frame\n\ 13165DX isn't specified). Likewise for the y-position; if a `top' frame
13162parameter is specified, it determines the y-position of the tooltip\n\ 13166parameter is specified, it determines the y-position of the tooltip
13163window, otherwise it is displayed at the mouse position, with offset\n\ 13167window, otherwise it is displayed at the mouse position, with offset
13164DY added (default is -10).\n\ 13168DY added (default is -10).
13165\n\ 13169
13166A tooltip's maximum size is specified by `x-max-tooltip-size'.\n\ 13170A tooltip's maximum size is specified by `x-max-tooltip-size'.
13167Text larger than the specified size is clipped.") 13171Text 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
13354DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, 13358DEFUN ("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.
13356Value is t if tooltip was open, nil otherwise.") 13360Value 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.")
13396extern Lisp_Object Qfile_name_history; 13400extern Lisp_Object Qfile_name_history;
13397 13401
13398DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 4, 0, 13402DEFUN ("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.
13400Use a file selection dialog.\n\ 13404Use a file selection dialog.
13401Select DEFAULT-FILENAME in the dialog's file selection box, if\n\ 13405Select DEFAULT-FILENAME in the dialog's file selection box, if
13402specified. Ensure that file exists if MUSTMATCH is non-nil.") 13406specified. 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
13510DEFUN ("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
13519DEFUN ("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
13540DEFUN ("w32-select-font", Fw32_select_font, Sw32_select_font, 0, 1, 0, 13512DEFUN ("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.
13514Returns 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
13585DEFUN ("w32-send-sys-command", Fw32_send_sys_command, Sw32_send_sys_command, 1, 2, 0, 13558DEFUN ("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,
13587Some useful values for command are 0xf030 to maximise frame (0xf020\n\ 13560 doc: /* Send frame a Windows WM_SYSCOMMAND message of type COMMAND.
13588to minimize), 0xf120 to restore frame to original size, and 0xf100\n\ 13561Some useful values for command are 0xf030 to maximise frame (0xf020
13589to activate the menubar for keyboard access. 0xf140 activates the\n\ 13562to minimize), 0xf120 to restore frame to original size, and 0xf100
13590screen saver if defined.\n\ 13563to activate the menubar for keyboard access. 0xf140 activates the
13591\n\ 13564screen saver if defined.
13592If optional parameter FRAME is not specified, use selected frame.") 13565
13566If 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
13605DEFUN ("w32-shell-execute", Fw32_shell_execute, Sw32_shell_execute, 2, 4, 0, 13579DEFUN ("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.
13607This is a wrapper around the ShellExecute system function, which\n\ 13581This is a wrapper around the ShellExecute system function, which
13608invokes the application registered to handle OPERATION for DOCUMENT.\n\ 13582invokes the application registered to handle OPERATION for DOCUMENT.
13609OPERATION is typically \"open\", \"print\" or \"explore\" (but can be\n\ 13583OPERATION is typically \"open\", \"print\" or \"explore\" (but can be
13610nil for the default action), and DOCUMENT is typically the name of a\n\ 13584nil for the default action), and DOCUMENT is typically the name of a
13611document file or URL, but can also be a program executable to run or\n\ 13585document file or URL, but can also be a program executable to run or
13612a directory to open in the Windows Explorer.\n\ 13586a directory to open in the Windows Explorer.
13613\n\ 13587
13614If DOCUMENT is a program executable, PARAMETERS can be a string\n\ 13588If DOCUMENT is a program executable, PARAMETERS can be a string
13615containing command line parameters, but otherwise should be nil.\n\ 13589containing command line parameters, but otherwise should be nil.
13616\n\ 13590
13617SHOW-FLAG can be used to control whether the invoked application is hidden\n\ 13591SHOW-FLAG can be used to control whether the invoked application is hidden
13618or minimized. If SHOW-FLAG is nil, the application is displayed normally,\n\ 13592or minimized. If SHOW-FLAG is nil, the application is displayed normally,
13619otherwise it is an integer representing a ShowWindow flag:\n\ 13593otherwise 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
13736DEFUN ("w32-register-hot-key", Fw32_register_hot_key, Sw32_register_hot_key, 1, 1, 0, 13710DEFUN ("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,
13738Certain key combinations like Alt-Tab are reserved for system use on\n\ 13712 doc: /* Register KEY as a hot-key combination.
13739Windows, and therefore are normally intercepted by the system. However,\n\ 13713Certain key combinations like Alt-Tab are reserved for system use on
13740most of these key combinations can be received by registering them as\n\ 13714Windows, and therefore are normally intercepted by the system. However,
13741hot-keys, overriding their special meaning.\n\ 13715most of these key combinations can be received by registering them as
13742\n\ 13716hot-keys, overriding their special meaning.
13743KEY must be a one element key definition in vector form that would be\n\ 13717
13744acceptable to `define-key' (e.g. [A-tab] for Alt-Tab). The meta\n\ 13718KEY must be a one element key definition in vector form that would be
13745modifier is interpreted as Alt if `w32-alt-is-meta' is t, and hyper\n\ 13719acceptable to `define-key' (e.g. [A-tab] for Alt-Tab). The meta
13746is always interpreted as the Windows modifier keys.\n\ 13720modifier is interpreted as Alt if `w32-alt-is-meta' is t, and hyper
13747\n\ 13721is always interpreted as the Windows modifier keys.
13748The return value is the hotkey-id if registered, otherwise nil.") 13722
13723The 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
13774DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, Sw32_unregister_hot_key, 1, 1, 0, 13749DEFUN ("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
13801DEFUN ("w32-registered-hot-keys", Fw32_registered_hot_keys, Sw32_registered_hot_keys, 0, 0, 0, 13777DEFUN ("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
13808DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, Sw32_reconstruct_hot_key, 1, 1, 0, 13785DEFUN ("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
13839DEFUN ("w32-toggle-lock-key", Fw32_toggle_lock_key, Sw32_toggle_lock_key, 1, 2, 0, 13817DEFUN ("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,
13841KEY can be `capslock', `kp-numlock', or `scroll'.\n\ 13819 doc: /* Toggle the state of the lock key KEY.
13842If the optional parameter NEW-STATE is a number, then the state of KEY\n\ 13820KEY can be `capslock', `kp-numlock', or `scroll'.
13843is set to off if the low bit of NEW-STATE is zero, otherwise on.") 13821If the optional parameter NEW-STATE is a number, then the state of KEY
13822is 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
13871DEFUN ("file-system-info", Ffile_system_info, Sfile_system_info, 1, 1, 0, 13850DEFUN ("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.
13873Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total\n\ 13852Value is a list of floats (TOTAL FREE AVAIL), where TOTAL is the total
13874storage of the file system, FREE is the free storage, and AVAIL is the\n\ 13853storage of the file system, FREE is the free storage, and AVAIL is the
13875storage available to a non-superuser. All 3 numbers are in bytes.\n\ 13854storage available to a non-superuser. All 3 numbers are in bytes.
13876If the underlying system call fails, value is nil.") 13855If 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.
14094When non-nil, for example, alt pressed and released and then space will\n\ 14073When non-nil, for example, alt pressed and released and then space will
14095open the System menu. When nil, Emacs silently swallows alt key events."); 14074open 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.
14100When nil, Emacs will translate the alt key to the Alt modifier, and not Meta."); 14079When 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.
14110When non-nil, the Start menu is opened by tapping the key."); 14089When 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.
14116When non-nil, the Start menu is opened by tapping the key."); 14095When 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.
14122Value is a number between 0 and 255.\n\ 14101Value is a number between 0 and 255.
14123\n\ 14102
14124Phantom key presses are generated in order to stop the system from\n\ 14103Phantom key presses are generated in order to stop the system from
14125acting on \"Windows\" key events when `w32-pass-lwindow-to-system' or\n\ 14104acting 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.
14134Set to nil to see Num Lock as the key `kp-numlock'."); 14113Set 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.
14140Set to nil to see Caps Lock as the key `capslock'."); 14119Set 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.
14146The value can be hyper, super, meta, alt, control or shift for the\n\ 14125The value can be hyper, super, meta, alt, control or shift for the
14147respective modifier, or nil to see Scroll Lock as the key `scroll'.\n\ 14126respective modifier, or nil to see Scroll Lock as the key `scroll'.
14148Any other value will cause the key to be ignored."); 14127Any 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.
14154The value can be hyper, super, meta, alt, control or shift for the\n\ 14133The value can be hyper, super, meta, alt, control or shift for the
14155respective modifier, or nil to appear as the key `lwindow'.\n\ 14134respective modifier, or nil to appear as the key `lwindow'.
14156Any other value will cause the key to be ignored."); 14135Any 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.
14162The value can be hyper, super, meta, alt, control or shift for the\n\ 14141The value can be hyper, super, meta, alt, control or shift for the
14163respective modifier, or nil to appear as the key `rwindow'.\n\ 14142respective modifier, or nil to appear as the key `rwindow'.
14164Any other value will cause the key to be ignored."); 14143Any 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.
14170The value can be hyper, super, meta, alt, control or shift for the\n\ 14149The value can be hyper, super, meta, alt, control or shift for the
14171respective modifier, or nil to appear as the key `apps'.\n\ 14150respective modifier, or nil to appear as the key `apps'.
14172Any other value will cause the key to be ignored."); 14151Any 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.
14186The value is the minimum time in milliseconds that must elapse between\n\ 14165The value is the minimum time in milliseconds that must elapse between
14187left/right button down events before they are considered distinct events.\n\ 14166left/right button down events before they are considered distinct events.
14188If both mouse buttons are depressed within this interval, a middle mouse\n\ 14167If both mouse buttons are depressed within this interval, a middle mouse
14189button down event is generated instead."); 14168button 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.
14195The value is the minimum time in milliseconds that must elapse between\n\ 14174The value is the minimum time in milliseconds that must elapse between
14196successive mouse move (or scroll bar drag) events before they are\n\ 14175successive mouse move (or scroll bar drag) events before they are
14197reported as lisp events."); 14176reported 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.
14208Changing the value does not affect existing frames\n\ 14187Changing the value does not affect existing frames
14209unless you set the mouse color."); 14188unless 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
14215when requesting resource values.\n\ 14194when requesting resource values.
14216Emacs initially sets `x-resource-name' to the name under which Emacs\n\ 14195Emacs initially sets `x-resource-name' to the name under which Emacs
14217was invoked, or to the value specified with the `-name' or `-rn'\n\ 14196was invoked, or to the value specified with the `-name' or `-rn'
14218switches, if present."); 14197switches, 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.
14227This variable takes effect when you create a new frame\n\ 14206This variable takes effect when you create a new frame
14228or when you set the mouse color."); 14207or 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.
14237Value must be an integer or float."); 14216Value 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.
14243This variable takes effect when you create a new frame\n\ 14222This variable takes effect when you create a new frame
14244or when you set the mouse color."); 14223or 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.
14250This variable takes effect when you create a new frame\n\ 14229This variable takes effect when you create a new frame
14251or when you set the mouse color."); 14230or 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).
14260Text larger than this is clipped."); 14239Text 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.
14265Emacs doesn't try to figure this out; this is always nil\n\ 14244Emacs doesn't try to figure this out; this is always nil
14266unless you set it to something else."); 14245unless 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
14275Since Emacs gets width of a font matching with this regexp from\n\ 14254Since Emacs gets width of a font matching with this regexp from
14276PIXEL_SIZE field of the name, font finding mechanism gets faster for\n\ 14255PIXEL_SIZE field of the name, font finding mechanism gets faster for
14277such a font. This is especially effective for such large fonts as\n\ 14256such a font. This is especially effective for such large fonts as
14278Chinese, Japanese, and Korean."); 14257Chinese, 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.
14283When an image has not been displayed this many seconds, remove it\n\ 14262When an image has not been displayed this many seconds, remove it
14284from the image cache. Value must be an integer or nil with nil\n\ 14263from the image cache. Value must be an integer or nil with nil
14285meaning don't clear the cache."); 14264meaning 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.
14296Default is nil, which allows old fontnames that are not XLFD compliant,\n\ 14275Default is nil, which allows old fontnames that are not XLFD compliant,
14297and allows third-party CJK display to work by specifying false charset\n\ 14276and allows third-party CJK display to work by specifying false charset
14298fields to trick Emacs into translating to Big5, SJIS etc.\n\ 14277fields to trick Emacs into translating to Big5, SJIS etc.
14299Setting this to t will prevent wrong fonts being selected when\n\ 14278Setting this to t will prevent wrong fonts being selected when
14300fontsets are automatically created."); 14279fontsets 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.
14306Set this to nil to get the old behaviour for repainting; this should\n\ 14285Set this to nil to get the old behaviour for repainting; this should
14307only be necessary if the default setting causes problems."); 14286only 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
14318and codepages. Each entry should be of the form:\n\ 14297and 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
14322where CHARSET_NAME is a string used in font names to identify the charset,\n\ 14301where CHARSET_NAME is a string used in font names to identify the charset,
14323WINDOWS_CHARSET is a symbol that can be one of:\n\ 14302WINDOWS_CHARSET is a symbol that can be one of:
14324w32-charset-ansi, w32-charset-default, w32-charset-symbol,\n\ 14303w32-charset-ansi, w32-charset-default, w32-charset-symbol,
14325w32-charset-shiftjis, w32-charset-hangeul, w32-charset-gb2312,\n\ 14304w32-charset-shiftjis, w32-charset-hangeul, w32-charset-gb2312,
14326w32-charset-chinesebig5, " 14305w32-charset-chinesebig5,
14327#ifdef JOHAB_CHARSET 14306#ifdef JOHAB_CHARSET
14328"w32-charset-johab, w32-charset-hebrew,\n\ 14307w32-charset-johab, w32-charset-hebrew,
14329w32-charset-arabic, w32-charset-greek, w32-charset-turkish,\n\ 14308w32-charset-arabic, w32-charset-greek, w32-charset-turkish,
14330w32-charset-vietnamese, w32-charset-thai, w32-charset-easteurope,\n\ 14309w32-charset-vietnamese, w32-charset-thai, w32-charset-easteurope,
14331w32-charset-russian, w32-charset-mac, w32-charset-baltic,\n" 14310w32-charset-russian, w32-charset-mac, w32-charset-baltic,
14332#endif 14311#endif
14333#ifdef UNICODE_CHARSET 14312#ifdef UNICODE_CHARSET
14334"w32-charset-unicode, " 14313w32-charset-unicode,
14335#endif 14314#endif
14336"or w32-charset-oem.\n\ 14315or w32-charset-oem.
14337CODEPAGE should be an integer specifying the codepage that should be used\n\ 14316CODEPAGE should be an integer specifying the codepage that should be used
14338to display the character set, t to do no translation and output as Unicode,\n\ 14317to display the character set, t to do no translation and output as Unicode,
14339or nil to do no translation and output as 8 bit (or multibyte on far-east\n\ 14318or nil to do no translation and output as 8 bit (or multibyte on far-east
14340versions of Windows) characters."); 14319versions 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");