diff options
| author | Martin Rudalics | 2015-08-21 11:14:06 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2015-08-21 11:14:06 +0200 |
| commit | e656b511a882410d3e0925c8e4385022649b71cc (patch) | |
| tree | 452cbab481cc47e9de66df1a9fc421103d179d7e | |
| parent | df9b29eda0ba1ec7f751dfd538eefbfe56b2c043 (diff) | |
| download | emacs-e656b511a882410d3e0925c8e4385022649b71cc.tar.gz emacs-e656b511a882410d3e0925c8e4385022649b71cc.zip | |
Fix frame geometry related text
* doc/lispref/frames.texi (Frame Layout): Rename
`x-frame-geometry' to `frame-geometry'.
* doc/lispref/frames.texi (Mouse Position):
* doc/lispref/windows.texi (Coordinates and Windows): Use
`set-mouse-absolute-pixel-position' instead of
`x-set-mouse-absolute-pixel-position'.
| -rw-r--r-- | doc/lispref/frames.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 4 | ||||
| -rw-r--r-- | etc/NEWS | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 28e6fbdfef4..aea5204d2f6 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -623,7 +623,7 @@ visible. | |||
| 623 | For a frame on a graphical terminal the following function returns the | 623 | For a frame on a graphical terminal the following function returns the |
| 624 | sizes of the areas described above: | 624 | sizes of the areas described above: |
| 625 | 625 | ||
| 626 | @defun x-frame-geometry &optional frame | 626 | @defun frame-geometry &optional frame |
| 627 | This function returns geometric attributes of @var{frame}. The return | 627 | This function returns geometric attributes of @var{frame}. The return |
| 628 | value is an association list of the attributes listed below. All | 628 | value is an association list of the attributes listed below. All |
| 629 | coordinate, height and width values are integers counting pixels. | 629 | coordinate, height and width values are integers counting pixels. |
| @@ -2370,13 +2370,13 @@ The return value is not significant. | |||
| 2370 | On a graphical terminal the following two functions allow to retrieve | 2370 | On a graphical terminal the following two functions allow to retrieve |
| 2371 | and set the absolute position of the mouse cursor. | 2371 | and set the absolute position of the mouse cursor. |
| 2372 | 2372 | ||
| 2373 | @defun x-mouse-absolute-pixel-position | 2373 | @defun mouse-absolute-pixel-position |
| 2374 | This function returns a cons cell (@var{x} . @var{y}) of the coordinates | 2374 | This function returns a cons cell (@var{x} . @var{y}) of the coordinates |
| 2375 | of the mouse cursor position in pixels, relative to a position (0, 0) of | 2375 | of the mouse cursor position in pixels, relative to a position (0, 0) of |
| 2376 | the selected frame's display. | 2376 | the selected frame's display. |
| 2377 | @end defun | 2377 | @end defun |
| 2378 | 2378 | ||
| 2379 | @defun x-set-mouse-absolute-pixel-position x y | 2379 | @defun set-mouse-absolute-pixel-position x y |
| 2380 | This function moves the mouse cursor to the position (@var{x}, @var{y}). | 2380 | This function moves the mouse cursor to the position (@var{x}, @var{y}). |
| 2381 | The coordinates @var{x} and @var{y} are interpreted in pixels relative | 2381 | The coordinates @var{x} and @var{y} are interpreted in pixels relative |
| 2382 | to a position (0, 0) of the selected frame's display. | 2382 | to a position (0, 0) of the selected frame's display. |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index b55a139a334..f809678f5c4 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -3866,7 +3866,7 @@ relative to an origin at (0, 0) of the display of @var{window}'s frame. | |||
| 3866 | Calling @code{(window-absolute-body-pixel-edges window)} is equivalent | 3866 | Calling @code{(window-absolute-body-pixel-edges window)} is equivalent |
| 3867 | to calling @code{(window-edges window t t t)}, see above. | 3867 | to calling @code{(window-edges window t t t)}, see above. |
| 3868 | 3868 | ||
| 3869 | Combined with @code{x-set-mouse-absolute-pixel-position}, this function | 3869 | Combined with @code{set-mouse-absolute-pixel-position}, this function |
| 3870 | can be used to move the mouse pointer to an arbitrary buffer position | 3870 | can be used to move the mouse pointer to an arbitrary buffer position |
| 3871 | visible in some window: | 3871 | visible in some window: |
| 3872 | 3872 | ||
| @@ -3907,7 +3907,7 @@ point in the selected window, it's sufficient to write: | |||
| 3907 | @example | 3907 | @example |
| 3908 | @group | 3908 | @group |
| 3909 | (let ((position (window-absolute-pixel-position))) | 3909 | (let ((position (window-absolute-pixel-position))) |
| 3910 | (x-set-mouse-absolute-pixel-position | 3910 | (set-mouse-absolute-pixel-position |
| 3911 | (car position) (cdr position))) | 3911 | (car position) (cdr position))) |
| 3912 | @end group | 3912 | @end group |
| 3913 | @end example | 3913 | @end example |
| @@ -1123,12 +1123,12 @@ Horizontal scroll bars are turned off by default. | |||
| 1123 | `scroll-bar-height'. | 1123 | `scroll-bar-height'. |
| 1124 | 1124 | ||
| 1125 | +++ | 1125 | +++ |
| 1126 | ** New functions `x-frame-geometry' and `frame-edges' give access to a | 1126 | ** New functions `frame-geometry' and `frame-edges' give access to a |
| 1127 | frame's geometry. | 1127 | frame's geometry. |
| 1128 | 1128 | ||
| 1129 | +++ | 1129 | +++ |
| 1130 | ** New functions `x-mouse-absolute-pixel-position' and | 1130 | ** New functions `mouse-absolute-pixel-position' and |
| 1131 | `x-set-mouse-absolute-pixel-position' get/set screen coordinates of the | 1131 | `set-mouse-absolute-pixel-position' get/set screen coordinates of the |
| 1132 | mouse cursor. | 1132 | mouse cursor. |
| 1133 | 1133 | ||
| 1134 | +++ | 1134 | +++ |