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'.
This commit is contained in:
Martin Rudalics 2015-08-21 11:14:06 +02:00
parent df9b29eda0
commit e656b511a8
3 changed files with 8 additions and 8 deletions

View file

@ -623,7 +623,7 @@ visible.
For a frame on a graphical terminal the following function returns the
sizes of the areas described above:
@defun x-frame-geometry &optional frame
@defun frame-geometry &optional frame
This function returns geometric attributes of @var{frame}. The return
value is an association list of the attributes listed below. All
coordinate, height and width values are integers counting pixels.
@ -2370,13 +2370,13 @@ The return value is not significant.
On a graphical terminal the following two functions allow to retrieve
and set the absolute position of the mouse cursor.
@defun x-mouse-absolute-pixel-position
@defun mouse-absolute-pixel-position
This function returns a cons cell (@var{x} . @var{y}) of the coordinates
of the mouse cursor position in pixels, relative to a position (0, 0) of
the selected frame's display.
@end defun
@defun x-set-mouse-absolute-pixel-position x y
@defun set-mouse-absolute-pixel-position x y
This function moves the mouse cursor to the position (@var{x}, @var{y}).
The coordinates @var{x} and @var{y} are interpreted in pixels relative
to a position (0, 0) of the selected frame's display.

View file

@ -3866,7 +3866,7 @@ relative to an origin at (0, 0) of the display of @var{window}'s frame.
Calling @code{(window-absolute-body-pixel-edges window)} is equivalent
to calling @code{(window-edges window t t t)}, see above.
Combined with @code{x-set-mouse-absolute-pixel-position}, this function
Combined with @code{set-mouse-absolute-pixel-position}, this function
can be used to move the mouse pointer to an arbitrary buffer position
visible in some window:
@ -3907,7 +3907,7 @@ point in the selected window, it's sufficient to write:
@example
@group
(let ((position (window-absolute-pixel-position)))
(x-set-mouse-absolute-pixel-position
(set-mouse-absolute-pixel-position
(car position) (cdr position)))
@end group
@end example

View file

@ -1123,12 +1123,12 @@ Horizontal scroll bars are turned off by default.
`scroll-bar-height'.
+++
** New functions `x-frame-geometry' and `frame-edges' give access to a
** New functions `frame-geometry' and `frame-edges' give access to a
frame's geometry.
+++
** New functions `x-mouse-absolute-pixel-position' and
`x-set-mouse-absolute-pixel-position' get/set screen coordinates of the
** New functions `mouse-absolute-pixel-position' and
`set-mouse-absolute-pixel-position' get/set screen coordinates of the
mouse cursor.
+++