comparison src/w32fns.c @ 86069:e657f7e0b51e

(Fw32_define_rgb_color, Fw32_load_color_file, Fx_display_save_under): Fix typos in docstrings. (Fx_server_version): Reflow docstring. (Fw32_shell_execute): Doc fixes.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 14 Nov 2007 17:13:10 +0000
parents e1989ca5c28e
children d57729b69f59
comparison
equal deleted inserted replaced
86068:4ef1ee8b42c4 86069:e657f7e0b51e
453 453
454 454
455 DEFUN ("w32-define-rgb-color", Fw32_define_rgb_color, 455 DEFUN ("w32-define-rgb-color", Fw32_define_rgb_color,
456 Sw32_define_rgb_color, 4, 4, 0, 456 Sw32_define_rgb_color, 4, 4, 0,
457 doc: /* Convert RGB numbers to a windows color reference and associate with NAME. 457 doc: /* Convert RGB numbers to a windows color reference and associate with NAME.
458 This adds or updates a named color to w32-color-map, making it 458 This adds or updates a named color to `w32-color-map', making it
459 available for use. The original entry's RGB ref is returned, or nil 459 available for use. The original entry's RGB ref is returned, or nil
460 if the entry is new. */) 460 if the entry is new. */)
461 (red, green, blue, name) 461 (red, green, blue, name)
462 Lisp_Object red, green, blue, name; 462 Lisp_Object red, green, blue, name;
463 { 463 {
493 } 493 }
494 494
495 DEFUN ("w32-load-color-file", Fw32_load_color_file, 495 DEFUN ("w32-load-color-file", Fw32_load_color_file,
496 Sw32_load_color_file, 1, 1, 0, 496 Sw32_load_color_file, 1, 1, 0,
497 doc: /* Create an alist of color entries from an external file. 497 doc: /* Create an alist of color entries from an external file.
498 Assign this value to w32-color-map to replace the existing color map. 498 Assign this value to `w32-color-map' to replace the existing color map.
499 499
500 The file should define one named RGB color per line like so: 500 The file should define one named RGB color per line like so:
501 R G B name 501 R G B name
502 where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */) 502 where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */)
503 (filename) 503 (filename)
6511 } 6511 }
6512 6512
6513 DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, 6513 DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0,
6514 doc: /* Returns the version numbers of the server of DISPLAY. 6514 doc: /* Returns the version numbers of the server of DISPLAY.
6515 The value is a list of three integers: the major and minor 6515 The value is a list of three integers: the major and minor
6516 version numbers of the X Protocol in use, and the distributor-specific release 6516 version numbers of the X Protocol in use, and the distributor-specific
6517 number. See also the function `x-server-vendor'. 6517 release number. See also the function `x-server-vendor'.
6518 6518
6519 The optional argument DISPLAY specifies which display to ask about. 6519 The optional argument DISPLAY specifies which display to ask about.
6520 DISPLAY should be either a frame or a display name (a string). 6520 DISPLAY should be either a frame or a display name (a string).
6521 If omitted or nil, that stands for the selected frame's display. */) 6521 If omitted or nil, that stands for the selected frame's display. */)
6522 (display) 6522 (display)
6622 return result; 6622 return result;
6623 } 6623 }
6624 6624
6625 DEFUN ("x-display-save-under", Fx_display_save_under, 6625 DEFUN ("x-display-save-under", Fx_display_save_under,
6626 Sx_display_save_under, 0, 1, 0, 6626 Sx_display_save_under, 0, 1, 0,
6627 doc: /* Returns t if DISPLAY supports the save-under feature. 6627 doc: /* Return t if DISPLAY supports the save-under feature.
6628 The optional argument DISPLAY specifies which display to ask about. 6628 The optional argument DISPLAY specifies which display to ask about.
6629 DISPLAY should be either a frame or a display name (a string). 6629 DISPLAY should be either a frame or a display name (a string).
6630 If omitted or nil, that stands for the selected frame's display. */) 6630 If omitted or nil, that stands for the selected frame's display. */)
6631 (display) 6631 (display)
6632 Lisp_Object display; 6632 Lisp_Object display;
8111 8111
8112 DOCUMENT is typically the name of a document file or a URL, but can 8112 DOCUMENT is typically the name of a document file or a URL, but can
8113 also be a program executable to run, or a directory to open in the 8113 also be a program executable to run, or a directory to open in the
8114 Windows Explorer. 8114 Windows Explorer.
8115 8115
8116 If DOCUMENT is a program executable, the optional arg PARAMETERS can 8116 If DOCUMENT is a program executable, the optional third arg PARAMETERS
8117 be a string containing command line parameters that will be passed to 8117 can be a string containing command line parameters that will be passed
8118 the program; otherwise, PARAMETERS should be nil or unspecified. 8118 to the program; otherwise, PARAMETERS should be nil or unspecified.
8119 8119
8120 Second optional argument SHOW-FLAG can be used to control how the 8120 Optional fourth argument SHOW-FLAG can be used to control how the
8121 application will be displayed when it is invoked. If SHOW-FLAG is nil 8121 application will be displayed when it is invoked. If SHOW-FLAG is nil
8122 or unspceified, the application is displayed normally, otherwise it is 8122 or unspecified, the application is displayed normally, otherwise it is
8123 an integer representing a ShowWindow flag: 8123 an integer representing a ShowWindow flag:
8124 8124
8125 0 - start hidden 8125 0 - start hidden
8126 1 - start normally 8126 1 - start normally
8127 3 - start maximized 8127 3 - start maximized
8561 if (ppi2->Attributes & PRINTER_ATTRIBUTE_SHARED && ppi2->pServerName) 8561 if (ppi2->Attributes & PRINTER_ATTRIBUTE_SHARED && ppi2->pServerName)
8562 { 8562 {
8563 /* a remote printer */ 8563 /* a remote printer */
8564 if (*ppi2->pServerName == '\\') 8564 if (*ppi2->pServerName == '\\')
8565 _snprintf (pname_buf, sizeof (pname_buf), "%s\\%s", ppi2->pServerName, 8565 _snprintf (pname_buf, sizeof (pname_buf), "%s\\%s", ppi2->pServerName,
8566 ppi2->pShareName); 8566 ppi2->pShareName);
8567 else 8567 else
8568 _snprintf (pname_buf, sizeof (pname_buf), "\\\\%s\\%s", ppi2->pServerName, 8568 _snprintf (pname_buf, sizeof (pname_buf), "\\\\%s\\%s", ppi2->pServerName,
8569 ppi2->pShareName); 8569 ppi2->pShareName);
8570 pname_buf[sizeof (pname_buf) - 1] = '\0'; 8570 pname_buf[sizeof (pname_buf) - 1] = '\0';
8571 } 8571 }
8572 else 8572 else
8573 { 8573 {
8574 /* a local printer */ 8574 /* a local printer */
9093 initialized is non zero (see the function main in emacs.c). 9093 initialized is non zero (see the function main in emacs.c).
9094 globals_of_w32fns is called from syms_of_w32fns when the global 9094 globals_of_w32fns is called from syms_of_w32fns when the global
9095 variable initialized is 0 and directly from main when initialized 9095 variable initialized is 0 and directly from main when initialized
9096 is non zero. 9096 is non zero.
9097 */ 9097 */
9098 void globals_of_w32fns () 9098 void
9099 globals_of_w32fns ()
9099 { 9100 {
9100 HMODULE user32_lib = GetModuleHandle ("user32.dll"); 9101 HMODULE user32_lib = GetModuleHandle ("user32.dll");
9101 /* 9102 /*
9102 TrackMouseEvent not available in all versions of Windows, so must load 9103 TrackMouseEvent not available in all versions of Windows, so must load
9103 it dynamically. Do it once, here, instead of every time it is used. 9104 it dynamically. Do it once, here, instead of every time it is used.