aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2015-08-21 11:14:06 +0200
committerMartin Rudalics2015-08-21 11:14:06 +0200
commite656b511a882410d3e0925c8e4385022649b71cc (patch)
tree452cbab481cc47e9de66df1a9fc421103d179d7e
parentdf9b29eda0ba1ec7f751dfd538eefbfe56b2c043 (diff)
downloademacs-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.texi6
-rw-r--r--doc/lispref/windows.texi4
-rw-r--r--etc/NEWS6
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
624sizes of the areas described above: 624sizes of the areas described above:
625 625
626@defun x-frame-geometry &optional frame 626@defun frame-geometry &optional frame
627This function returns geometric attributes of @var{frame}. The return 627This function returns geometric attributes of @var{frame}. The return
628value is an association list of the attributes listed below. All 628value is an association list of the attributes listed below. All
629coordinate, height and width values are integers counting pixels. 629coordinate, height and width values are integers counting pixels.
@@ -2370,13 +2370,13 @@ The return value is not significant.
2370On a graphical terminal the following two functions allow to retrieve 2370On a graphical terminal the following two functions allow to retrieve
2371and set the absolute position of the mouse cursor. 2371and set the absolute position of the mouse cursor.
2372 2372
2373@defun x-mouse-absolute-pixel-position 2373@defun mouse-absolute-pixel-position
2374This function returns a cons cell (@var{x} . @var{y}) of the coordinates 2374This function returns a cons cell (@var{x} . @var{y}) of the coordinates
2375of the mouse cursor position in pixels, relative to a position (0, 0) of 2375of the mouse cursor position in pixels, relative to a position (0, 0) of
2376the selected frame's display. 2376the 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
2380This function moves the mouse cursor to the position (@var{x}, @var{y}). 2380This function moves the mouse cursor to the position (@var{x}, @var{y}).
2381The coordinates @var{x} and @var{y} are interpreted in pixels relative 2381The coordinates @var{x} and @var{y} are interpreted in pixels relative
2382to a position (0, 0) of the selected frame's display. 2382to 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.
3866Calling @code{(window-absolute-body-pixel-edges window)} is equivalent 3866Calling @code{(window-absolute-body-pixel-edges window)} is equivalent
3867to calling @code{(window-edges window t t t)}, see above. 3867to calling @code{(window-edges window t t t)}, see above.
3868 3868
3869Combined with @code{x-set-mouse-absolute-pixel-position}, this function 3869Combined with @code{set-mouse-absolute-pixel-position}, this function
3870can be used to move the mouse pointer to an arbitrary buffer position 3870can be used to move the mouse pointer to an arbitrary buffer position
3871visible in some window: 3871visible 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
diff --git a/etc/NEWS b/etc/NEWS
index 3a654c855d9..17a6c3a0828 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
1127frame's geometry. 1127frame'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
1132mouse cursor. 1132mouse cursor.
1133 1133
1134+++ 1134+++