diff options
| author | YAMAMOTO Mitsuharu | 2013-05-20 12:15:20 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2013-05-20 12:15:20 +0900 |
| commit | d6635ba23031c9ceb430d5bec5dbb8ee4c75ad12 (patch) | |
| tree | 1c96fd5cf2695fb97428b5cc255d91c7e8b0754d /src | |
| parent | 5ba8bf358ff6e7fcaf0c9e987da9661e89c62e15 (diff) | |
| download | emacs-d6635ba23031c9ceb430d5bec5dbb8ee4c75ad12.tar.gz emacs-d6635ba23031c9ceb430d5bec5dbb8ee4c75ad12.zip | |
Mention `display-monitor-attributes-list' in docstrings of X11 display measurement functions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xfns.c | 24 |
2 files changed, 23 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 186f7812f44..56ee8f659bc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | 2013-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 1 | 2013-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 2 | ||
| 3 | * xfns.c (check_x_display_info): Don't use XINT for terminal object. | 3 | * xfns.c (check_x_display_info): Don't use XINT for terminal object. |
| 4 | (Fx_display_pixel_width, Fx_display_pixel_height) | ||
| 5 | (Fx_display_mm_width, Fx_display_mm_height): Mention | ||
| 6 | `display-monitor-attributes-list' in docstrings. | ||
| 4 | 7 | ||
| 5 | 2013-05-18 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2013-05-18 Paul Eggert <eggert@cs.ucla.edu> |
| 6 | 9 | ||
diff --git a/src/xfns.c b/src/xfns.c index a61d2de5905..af29c5bdc3f 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3569,7 +3569,11 @@ DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, | |||
| 3569 | doc: /* Return the width in pixels of the X display TERMINAL. | 3569 | doc: /* Return the width in pixels of the X display TERMINAL. |
| 3570 | The optional argument TERMINAL specifies which display to ask about. | 3570 | The optional argument TERMINAL specifies which display to ask about. |
| 3571 | TERMINAL should be a terminal object, a frame or a display name (a string). | 3571 | TERMINAL should be a terminal object, a frame or a display name (a string). |
| 3572 | If omitted or nil, that stands for the selected frame's display. */) | 3572 | If omitted or nil, that stands for the selected frame's display. |
| 3573 | |||
| 3574 | On \"multi-monitor\" setups this refers to the pixel width for all | ||
| 3575 | physical monitors associated with TERMINAL. To get information for | ||
| 3576 | each physical monitor, use `display-monitor-attributes-list'. */) | ||
| 3573 | (Lisp_Object terminal) | 3577 | (Lisp_Object terminal) |
| 3574 | { | 3578 | { |
| 3575 | struct x_display_info *dpyinfo = check_x_display_info (terminal); | 3579 | struct x_display_info *dpyinfo = check_x_display_info (terminal); |
| @@ -3582,7 +3586,11 @@ DEFUN ("x-display-pixel-height", Fx_display_pixel_height, | |||
| 3582 | doc: /* Return the height in pixels of the X display TERMINAL. | 3586 | doc: /* Return the height in pixels of the X display TERMINAL. |
| 3583 | The optional argument TERMINAL specifies which display to ask about. | 3587 | The optional argument TERMINAL specifies which display to ask about. |
| 3584 | TERMINAL should be a terminal object, a frame or a display name (a string). | 3588 | TERMINAL should be a terminal object, a frame or a display name (a string). |
| 3585 | If omitted or nil, that stands for the selected frame's display. */) | 3589 | If omitted or nil, that stands for the selected frame's display. |
| 3590 | |||
| 3591 | On \"multi-monitor\" setups this refers to the pixel height for all | ||
| 3592 | physical monitors associated with TERMINAL. To get information for | ||
| 3593 | each physical monitor, use `display-monitor-attributes-list'. */) | ||
| 3586 | (Lisp_Object terminal) | 3594 | (Lisp_Object terminal) |
| 3587 | { | 3595 | { |
| 3588 | struct x_display_info *dpyinfo = check_x_display_info (terminal); | 3596 | struct x_display_info *dpyinfo = check_x_display_info (terminal); |
| @@ -3690,7 +3698,11 @@ DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 0, 1, | |||
| 3690 | doc: /* Return the height in millimeters of the X display TERMINAL. | 3698 | doc: /* Return the height in millimeters of the X display TERMINAL. |
| 3691 | The optional argument TERMINAL specifies which display to ask about. | 3699 | The optional argument TERMINAL specifies which display to ask about. |
| 3692 | TERMINAL should be a terminal object, a frame or a display name (a string). | 3700 | TERMINAL should be a terminal object, a frame or a display name (a string). |
| 3693 | If omitted or nil, that stands for the selected frame's display. */) | 3701 | If omitted or nil, that stands for the selected frame's display. |
| 3702 | |||
| 3703 | On \"multi-monitor\" setups this refers to the height in millimeters for | ||
| 3704 | all physical monitors associated with TERMINAL. To get information | ||
| 3705 | for each physical monitor, use `display-monitor-attributes-list'. */) | ||
| 3694 | (Lisp_Object terminal) | 3706 | (Lisp_Object terminal) |
| 3695 | { | 3707 | { |
| 3696 | struct x_display_info *dpyinfo = check_x_display_info (terminal); | 3708 | struct x_display_info *dpyinfo = check_x_display_info (terminal); |
| @@ -3702,7 +3714,11 @@ DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, | |||
| 3702 | doc: /* Return the width in millimeters of the X display TERMINAL. | 3714 | doc: /* Return the width in millimeters of the X display TERMINAL. |
| 3703 | The optional argument TERMINAL specifies which display to ask about. | 3715 | The optional argument TERMINAL specifies which display to ask about. |
| 3704 | TERMINAL should be a terminal object, a frame or a display name (a string). | 3716 | TERMINAL should be a terminal object, a frame or a display name (a string). |
| 3705 | If omitted or nil, that stands for the selected frame's display. */) | 3717 | If omitted or nil, that stands for the selected frame's display. |
| 3718 | |||
| 3719 | On \"multi-monitor\" setups this refers to the width in millimeters for | ||
| 3720 | all physical monitors associated with TERMINAL. To get information | ||
| 3721 | for each physical monitor, use `display-monitor-attributes-list'. */) | ||
| 3706 | (Lisp_Object terminal) | 3722 | (Lisp_Object terminal) |
| 3707 | { | 3723 | { |
| 3708 | struct x_display_info *dpyinfo = check_x_display_info (terminal); | 3724 | struct x_display_info *dpyinfo = check_x_display_info (terminal); |