aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2006-08-12 11:36:15 +0000
committerEli Zaretskii2006-08-12 11:36:15 +0000
commitd0cd961e58fb5e421377fad88b1037546e9bec93 (patch)
treefa7900e7e445b5bbb61b5b9449d50f2f7f966565 /src
parentd5e5361f9fbc64540b42cefb819efec84fa910b3 (diff)
downloademacs-d0cd961e58fb5e421377fad88b1037546e9bec93.tar.gz
emacs-d0cd961e58fb5e421377fad88b1037546e9bec93.zip
(Fmouse_position, Fmouse_pixel_position)
(Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c
index 1fdeb129f89..82a016be69e 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1429,7 +1429,8 @@ The functions are run with one arg, the frame to be deleted. */)
1429DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0, 1429DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0,
1430 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. 1430 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position.
1431The position is given in character cells, where (0, 0) is the 1431The position is given in character cells, where (0, 0) is the
1432upper-left corner. 1432upper-left corner of the frame, X is the horizontal offset, and Y is
1433the vertical offset.
1433If Emacs is running on a mouseless terminal or hasn't been programmed 1434If Emacs is running on a mouseless terminal or hasn't been programmed
1434to read the mouse position, it returns the selected frame for FRAME 1435to read the mouse position, it returns the selected frame for FRAME
1435and nil for X and Y. 1436and nil for X and Y.
@@ -1477,7 +1478,8 @@ DEFUN ("mouse-pixel-position", Fmouse_pixel_position,
1477 Smouse_pixel_position, 0, 0, 0, 1478 Smouse_pixel_position, 0, 0, 0,
1478 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. 1479 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position.
1479The position is given in pixel units, where (0, 0) is the 1480The position is given in pixel units, where (0, 0) is the
1480upper-left corner. 1481upper-left corner of the frame, X is the horizontal offset, and Y is
1482the vertical offset.
1481If Emacs is running on a mouseless terminal or hasn't been programmed 1483If Emacs is running on a mouseless terminal or hasn't been programmed
1482to read the mouse position, it returns the selected frame for FRAME 1484to read the mouse position, it returns the selected frame for FRAME
1483and nil for X and Y. */) 1485and nil for X and Y. */)
@@ -1510,6 +1512,10 @@ Coordinates are relative to the frame, not a window,
1510so the coordinates of the top left character in the frame 1512so the coordinates of the top left character in the frame
1511may be nonzero due to left-hand scroll bars or the menu bar. 1513may be nonzero due to left-hand scroll bars or the menu bar.
1512 1514
1515The position is given in character cells, where (0, 0) is the
1516upper-left corner of the frame, X is the horizontal offset, and Y is
1517the vertical offset.
1518
1513This function is a no-op for an X frame that is not visible. 1519This function is a no-op for an X frame that is not visible.
1514If you have just created a frame, you must wait for it to become visible 1520If you have just created a frame, you must wait for it to become visible
1515before calling this function on it, like this. 1521before calling this function on it, like this.
@@ -1542,6 +1548,9 @@ before calling this function on it, like this.
1542DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, 1548DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position,
1543 Sset_mouse_pixel_position, 3, 3, 0, 1549 Sset_mouse_pixel_position, 3, 3, 0,
1544 doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME. 1550 doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME.
1551The position is given in pixels, where (0, 0) is the upper-left corner
1552of the frame, X is the horizontal offset, and Y is the vertical offset.
1553
1545Note, this is a no-op for an X frame that is not visible. 1554Note, this is a no-op for an X frame that is not visible.
1546If you have just created a frame, you must wait for it to become visible 1555If you have just created a frame, you must wait for it to become visible
1547before calling this function on it, like this. 1556before calling this function on it, like this.