diff options
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index 9bbdcd592aa..c57618696eb 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1439,7 +1439,8 @@ The functions are run with one arg, the frame to be deleted. */) | |||
| 1439 | DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0, | 1439 | DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0, |
| 1440 | doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. | 1440 | doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. |
| 1441 | The position is given in character cells, where (0, 0) is the | 1441 | The position is given in character cells, where (0, 0) is the |
| 1442 | upper-left corner. | 1442 | upper-left corner of the frame, X is the horizontal offset, and Y is |
| 1443 | the vertical offset. | ||
| 1443 | If Emacs is running on a mouseless terminal or hasn't been programmed | 1444 | If Emacs is running on a mouseless terminal or hasn't been programmed |
| 1444 | to read the mouse position, it returns the selected frame for FRAME | 1445 | to read the mouse position, it returns the selected frame for FRAME |
| 1445 | and nil for X and Y. | 1446 | and nil for X and Y. |
| @@ -1487,7 +1488,8 @@ DEFUN ("mouse-pixel-position", Fmouse_pixel_position, | |||
| 1487 | Smouse_pixel_position, 0, 0, 0, | 1488 | Smouse_pixel_position, 0, 0, 0, |
| 1488 | doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. | 1489 | doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. |
| 1489 | The position is given in pixel units, where (0, 0) is the | 1490 | The position is given in pixel units, where (0, 0) is the |
| 1490 | upper-left corner. | 1491 | upper-left corner of the frame, X is the horizontal offset, and Y is |
| 1492 | the vertical offset. | ||
| 1491 | If Emacs is running on a mouseless terminal or hasn't been programmed | 1493 | If Emacs is running on a mouseless terminal or hasn't been programmed |
| 1492 | to read the mouse position, it returns the selected frame for FRAME | 1494 | to read the mouse position, it returns the selected frame for FRAME |
| 1493 | and nil for X and Y. */) | 1495 | and nil for X and Y. */) |
| @@ -1520,6 +1522,10 @@ Coordinates are relative to the frame, not a window, | |||
| 1520 | so the coordinates of the top left character in the frame | 1522 | so the coordinates of the top left character in the frame |
| 1521 | may be nonzero due to left-hand scroll bars or the menu bar. | 1523 | may be nonzero due to left-hand scroll bars or the menu bar. |
| 1522 | 1524 | ||
| 1525 | The position is given in character cells, where (0, 0) is the | ||
| 1526 | upper-left corner of the frame, X is the horizontal offset, and Y is | ||
| 1527 | the vertical offset. | ||
| 1528 | |||
| 1523 | This function is a no-op for an X frame that is not visible. | 1529 | This function is a no-op for an X frame that is not visible. |
| 1524 | If you have just created a frame, you must wait for it to become visible | 1530 | If you have just created a frame, you must wait for it to become visible |
| 1525 | before calling this function on it, like this. | 1531 | before calling this function on it, like this. |
| @@ -1552,6 +1558,9 @@ before calling this function on it, like this. | |||
| 1552 | DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, | 1558 | DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, |
| 1553 | Sset_mouse_pixel_position, 3, 3, 0, | 1559 | Sset_mouse_pixel_position, 3, 3, 0, |
| 1554 | doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME. | 1560 | doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME. |
| 1561 | The position is given in pixels, where (0, 0) is the upper-left corner | ||
| 1562 | of the frame, X is the horizontal offset, and Y is the vertical offset. | ||
| 1563 | |||
| 1555 | Note, this is a no-op for an X frame that is not visible. | 1564 | Note, this is a no-op for an X frame that is not visible. |
| 1556 | If you have just created a frame, you must wait for it to become visible | 1565 | If you have just created a frame, you must wait for it to become visible |
| 1557 | before calling this function on it, like this. | 1566 | before calling this function on it, like this. |