From: Martin Rudalics Date: Fri, 21 Aug 2015 09:14:06 +0000 (+0200) Subject: Fix frame geometry related text X-Git-Tag: emacs-25.0.90~1329 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e656b511a882410d3e0925c8e4385022649b71cc;p=emacs.git 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'. --- 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. 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. 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. 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 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. `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. +++