Mercurial > emacs
comparison src/w32fns.c @ 79393:09f6c4242048
(Fx_create_frame, Fx_display_pixel_width, Fx_display_pixel_height,
Fx_display_planes, Fx_display_color_cells, Fx_server_max_request_size,
Fx_server_vendor, Fx_server_version, Fx_display_screens, Fx_display_mm_height,
Fx_display_mm_width, Fx_display_backing_store, Fx_display_visual_class,
Fw32_select_font, Fx_display_save_under): Fix typos in docstrings.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 15 Nov 2007 09:33:33 +0000 |
parents | 0ca197abc593 |
children | fb6105cb466b |
comparison
equal
deleted
inserted
replaced
79392:5bb5f9a8abab | 79393:09f6c4242048 |
---|---|
4128 | 4128 |
4129 | 4129 |
4130 DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | 4130 DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, |
4131 1, 1, 0, | 4131 1, 1, 0, |
4132 doc: /* Make a new window, which is called a \"frame\" in Emacs terms. | 4132 doc: /* Make a new window, which is called a \"frame\" in Emacs terms. |
4133 Returns an Emacs frame object. | 4133 Return an Emacs frame object. |
4134 PARAMETERS is an alist of frame parameters. | 4134 PARAMETERS is an alist of frame parameters. |
4135 If the parameters specify that the frame should not have a minibuffer, | 4135 If the parameters specify that the frame should not have a minibuffer, |
4136 and do not specify a specific minibuffer window to use, | 4136 and do not specify a specific minibuffer window to use, |
4137 then `default-minibuffer-frame' must be a frame whose minibuffer can | 4137 then `default-minibuffer-frame' must be a frame whose minibuffer can |
4138 be shared by the new frame. | 4138 be shared by the new frame. |
6387 return Qt; | 6387 return Qt; |
6388 } | 6388 } |
6389 | 6389 |
6390 DEFUN ("x-display-pixel-width", Fx_display_pixel_width, | 6390 DEFUN ("x-display-pixel-width", Fx_display_pixel_width, |
6391 Sx_display_pixel_width, 0, 1, 0, | 6391 Sx_display_pixel_width, 0, 1, 0, |
6392 doc: /* Returns the width in pixels of DISPLAY. | 6392 doc: /* Return the width in pixels of DISPLAY. |
6393 The optional argument DISPLAY specifies which display to ask about. | 6393 The optional argument DISPLAY specifies which display to ask about. |
6394 DISPLAY should be either a frame or a display name (a string). | 6394 DISPLAY should be either a frame or a display name (a string). |
6395 If omitted or nil, that stands for the selected frame's display. */) | 6395 If omitted or nil, that stands for the selected frame's display. */) |
6396 (display) | 6396 (display) |
6397 Lisp_Object display; | 6397 Lisp_Object display; |
6401 return make_number (dpyinfo->width); | 6401 return make_number (dpyinfo->width); |
6402 } | 6402 } |
6403 | 6403 |
6404 DEFUN ("x-display-pixel-height", Fx_display_pixel_height, | 6404 DEFUN ("x-display-pixel-height", Fx_display_pixel_height, |
6405 Sx_display_pixel_height, 0, 1, 0, | 6405 Sx_display_pixel_height, 0, 1, 0, |
6406 doc: /* Returns the height in pixels of DISPLAY. | 6406 doc: /* Return the height in pixels of DISPLAY. |
6407 The optional argument DISPLAY specifies which display to ask about. | 6407 The optional argument DISPLAY specifies which display to ask about. |
6408 DISPLAY should be either a frame or a display name (a string). | 6408 DISPLAY should be either a frame or a display name (a string). |
6409 If omitted or nil, that stands for the selected frame's display. */) | 6409 If omitted or nil, that stands for the selected frame's display. */) |
6410 (display) | 6410 (display) |
6411 Lisp_Object display; | 6411 Lisp_Object display; |
6415 return make_number (dpyinfo->height); | 6415 return make_number (dpyinfo->height); |
6416 } | 6416 } |
6417 | 6417 |
6418 DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, | 6418 DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, |
6419 0, 1, 0, | 6419 0, 1, 0, |
6420 doc: /* Returns the number of bitplanes of DISPLAY. | 6420 doc: /* Return the number of bitplanes of DISPLAY. |
6421 The optional argument DISPLAY specifies which display to ask about. | 6421 The optional argument DISPLAY specifies which display to ask about. |
6422 DISPLAY should be either a frame or a display name (a string). | 6422 DISPLAY should be either a frame or a display name (a string). |
6423 If omitted or nil, that stands for the selected frame's display. */) | 6423 If omitted or nil, that stands for the selected frame's display. */) |
6424 (display) | 6424 (display) |
6425 Lisp_Object display; | 6425 Lisp_Object display; |
6429 return make_number (dpyinfo->n_planes * dpyinfo->n_cbits); | 6429 return make_number (dpyinfo->n_planes * dpyinfo->n_cbits); |
6430 } | 6430 } |
6431 | 6431 |
6432 DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, | 6432 DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, |
6433 0, 1, 0, | 6433 0, 1, 0, |
6434 doc: /* Returns the number of color cells of DISPLAY. | 6434 doc: /* Return the number of color cells of DISPLAY. |
6435 The optional argument DISPLAY specifies which display to ask about. | 6435 The optional argument DISPLAY specifies which display to ask about. |
6436 DISPLAY should be either a frame or a display name (a string). | 6436 DISPLAY should be either a frame or a display name (a string). |
6437 If omitted or nil, that stands for the selected frame's display. */) | 6437 If omitted or nil, that stands for the selected frame's display. */) |
6438 (display) | 6438 (display) |
6439 Lisp_Object display; | 6439 Lisp_Object display; |
6459 } | 6459 } |
6460 | 6460 |
6461 DEFUN ("x-server-max-request-size", Fx_server_max_request_size, | 6461 DEFUN ("x-server-max-request-size", Fx_server_max_request_size, |
6462 Sx_server_max_request_size, | 6462 Sx_server_max_request_size, |
6463 0, 1, 0, | 6463 0, 1, 0, |
6464 doc: /* Returns the maximum request size of the server of DISPLAY. | 6464 doc: /* Return the maximum request size of the server of DISPLAY. |
6465 The optional argument DISPLAY specifies which display to ask about. | 6465 The optional argument DISPLAY specifies which display to ask about. |
6466 DISPLAY should be either a frame or a display name (a string). | 6466 DISPLAY should be either a frame or a display name (a string). |
6467 If omitted or nil, that stands for the selected frame's display. */) | 6467 If omitted or nil, that stands for the selected frame's display. */) |
6468 (display) | 6468 (display) |
6469 Lisp_Object display; | 6469 Lisp_Object display; |
6472 | 6472 |
6473 return make_number (1); | 6473 return make_number (1); |
6474 } | 6474 } |
6475 | 6475 |
6476 DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, | 6476 DEFUN ("x-server-vendor", Fx_server_vendor, Sx_server_vendor, 0, 1, 0, |
6477 doc: /* Returns the "vendor ID" string of the W32 system (Microsoft). | 6477 doc: /* Return the "vendor ID" string of the W32 system (Microsoft). |
6478 The optional argument DISPLAY specifies which display to ask about. | 6478 The optional argument DISPLAY specifies which display to ask about. |
6479 DISPLAY should be either a frame or a display name (a string). | 6479 DISPLAY should be either a frame or a display name (a string). |
6480 If omitted or nil, that stands for the selected frame's display. */) | 6480 If omitted or nil, that stands for the selected frame's display. */) |
6481 (display) | 6481 (display) |
6482 Lisp_Object display; | 6482 Lisp_Object display; |
6483 { | 6483 { |
6484 return build_string ("Microsoft Corp."); | 6484 return build_string ("Microsoft Corp."); |
6485 } | 6485 } |
6486 | 6486 |
6487 DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, | 6487 DEFUN ("x-server-version", Fx_server_version, Sx_server_version, 0, 1, 0, |
6488 doc: /* Returns the version numbers of the server of DISPLAY. | 6488 doc: /* Return the version numbers of the server of DISPLAY. |
6489 The value is a list of three integers: the major and minor | 6489 The value is a list of three integers: the major and minor |
6490 version numbers of the X Protocol in use, and the distributor-specific | 6490 version numbers of the X Protocol in use, and the distributor-specific |
6491 release number. See also the function `x-server-vendor'. | 6491 release number. See also the function `x-server-vendor'. |
6492 | 6492 |
6493 The optional argument DISPLAY specifies which display to ask about. | 6493 The optional argument DISPLAY specifies which display to ask about. |
6500 Fcons (make_number (w32_minor_version), | 6500 Fcons (make_number (w32_minor_version), |
6501 Fcons (make_number (w32_build_number), Qnil))); | 6501 Fcons (make_number (w32_build_number), Qnil))); |
6502 } | 6502 } |
6503 | 6503 |
6504 DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, | 6504 DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, |
6505 doc: /* Returns the number of screens on the server of DISPLAY. | 6505 doc: /* Return the number of screens on the server of DISPLAY. |
6506 The optional argument DISPLAY specifies which display to ask about. | 6506 The optional argument DISPLAY specifies which display to ask about. |
6507 DISPLAY should be either a frame or a display name (a string). | 6507 DISPLAY should be either a frame or a display name (a string). |
6508 If omitted or nil, that stands for the selected frame's display. */) | 6508 If omitted or nil, that stands for the selected frame's display. */) |
6509 (display) | 6509 (display) |
6510 Lisp_Object display; | 6510 Lisp_Object display; |
6512 return make_number (1); | 6512 return make_number (1); |
6513 } | 6513 } |
6514 | 6514 |
6515 DEFUN ("x-display-mm-height", Fx_display_mm_height, | 6515 DEFUN ("x-display-mm-height", Fx_display_mm_height, |
6516 Sx_display_mm_height, 0, 1, 0, | 6516 Sx_display_mm_height, 0, 1, 0, |
6517 doc: /* Returns the height in millimeters of DISPLAY. | 6517 doc: /* Return the height in millimeters of DISPLAY. |
6518 The optional argument DISPLAY specifies which display to ask about. | 6518 The optional argument DISPLAY specifies which display to ask about. |
6519 DISPLAY should be either a frame or a display name (a string). | 6519 DISPLAY should be either a frame or a display name (a string). |
6520 If omitted or nil, that stands for the selected frame's display. */) | 6520 If omitted or nil, that stands for the selected frame's display. */) |
6521 (display) | 6521 (display) |
6522 Lisp_Object display; | 6522 Lisp_Object display; |
6533 | 6533 |
6534 return make_number (cap); | 6534 return make_number (cap); |
6535 } | 6535 } |
6536 | 6536 |
6537 DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, | 6537 DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, |
6538 doc: /* Returns the width in millimeters of DISPLAY. | 6538 doc: /* Return the width in millimeters of DISPLAY. |
6539 The optional argument DISPLAY specifies which display to ask about. | 6539 The optional argument DISPLAY specifies which display to ask about. |
6540 DISPLAY should be either a frame or a display name (a string). | 6540 DISPLAY should be either a frame or a display name (a string). |
6541 If omitted or nil, that stands for the selected frame's display. */) | 6541 If omitted or nil, that stands for the selected frame's display. */) |
6542 (display) | 6542 (display) |
6543 Lisp_Object display; | 6543 Lisp_Object display; |
6556 return make_number (cap); | 6556 return make_number (cap); |
6557 } | 6557 } |
6558 | 6558 |
6559 DEFUN ("x-display-backing-store", Fx_display_backing_store, | 6559 DEFUN ("x-display-backing-store", Fx_display_backing_store, |
6560 Sx_display_backing_store, 0, 1, 0, | 6560 Sx_display_backing_store, 0, 1, 0, |
6561 doc: /* Returns an indication of whether DISPLAY does backing store. | 6561 doc: /* Return an indication of whether DISPLAY does backing store. |
6562 The value may be `always', `when-mapped', or `not-useful'. | 6562 The value may be `always', `when-mapped', or `not-useful'. |
6563 The optional argument DISPLAY specifies which display to ask about. | 6563 The optional argument DISPLAY specifies which display to ask about. |
6564 DISPLAY should be either a frame or a display name (a string). | 6564 DISPLAY should be either a frame or a display name (a string). |
6565 If omitted or nil, that stands for the selected frame's display. */) | 6565 If omitted or nil, that stands for the selected frame's display. */) |
6566 (display) | 6566 (display) |
6569 return intern ("not-useful"); | 6569 return intern ("not-useful"); |
6570 } | 6570 } |
6571 | 6571 |
6572 DEFUN ("x-display-visual-class", Fx_display_visual_class, | 6572 DEFUN ("x-display-visual-class", Fx_display_visual_class, |
6573 Sx_display_visual_class, 0, 1, 0, | 6573 Sx_display_visual_class, 0, 1, 0, |
6574 doc: /* Returns the visual class of DISPLAY. | 6574 doc: /* Return the visual class of DISPLAY. |
6575 The value is one of the symbols `static-gray', `gray-scale', | 6575 The value is one of the symbols `static-gray', `gray-scale', |
6576 `static-color', `pseudo-color', `true-color', or `direct-color'. | 6576 `static-color', `pseudo-color', `true-color', or `direct-color'. |
6577 | 6577 |
6578 The optional argument DISPLAY specifies which display to ask about. | 6578 The optional argument DISPLAY specifies which display to ask about. |
6579 DISPLAY should be either a frame or a display name (a string). | 6579 DISPLAY should be either a frame or a display name (a string). |
6596 return result; | 6596 return result; |
6597 } | 6597 } |
6598 | 6598 |
6599 DEFUN ("x-display-save-under", Fx_display_save_under, | 6599 DEFUN ("x-display-save-under", Fx_display_save_under, |
6600 Sx_display_save_under, 0, 1, 0, | 6600 Sx_display_save_under, 0, 1, 0, |
6601 doc: /* Returns t if DISPLAY supports the save-under feature. | 6601 doc: /* Return t if DISPLAY supports the save-under feature. |
6602 The optional argument DISPLAY specifies which display to ask about. | 6602 The optional argument DISPLAY specifies which display to ask about. |
6603 DISPLAY should be either a frame or a display name (a string). | 6603 DISPLAY should be either a frame or a display name (a string). |
6604 If omitted or nil, that stands for the selected frame's display. */) | 6604 If omitted or nil, that stands for the selected frame's display. */) |
6605 (display) | 6605 (display) |
6606 Lisp_Object display; | 6606 Lisp_Object display; |
7977 w32 specialized functions | 7977 w32 specialized functions |
7978 ***********************************************************************/ | 7978 ***********************************************************************/ |
7979 | 7979 |
7980 DEFUN ("w32-select-font", Fw32_select_font, Sw32_select_font, 0, 2, 0, | 7980 DEFUN ("w32-select-font", Fw32_select_font, Sw32_select_font, 0, 2, 0, |
7981 doc: /* Select a font for the named FRAME using the W32 font dialog. | 7981 doc: /* Select a font for the named FRAME using the W32 font dialog. |
7982 Returns an X-style font string corresponding to the selection. | 7982 Return an X-style font string corresponding to the selection. |
7983 | 7983 |
7984 If FRAME is omitted or nil, it defaults to the selected frame. | 7984 If FRAME is omitted or nil, it defaults to the selected frame. |
7985 If INCLUDE-PROPORTIONAL is non-nil, include proportional fonts | 7985 If INCLUDE-PROPORTIONAL is non-nil, include proportional fonts |
7986 in the font selection dialog. */) | 7986 in the font selection dialog. */) |
7987 (frame, include_proportional) | 7987 (frame, include_proportional) |