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 fd10c3e273c..021e9bf604f 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1679,7 +1679,8 @@ The functions are run with one arg, the frame to be deleted. */) | |||
| 1679 | DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0, | 1679 | DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0, |
| 1680 | doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. | 1680 | doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. |
| 1681 | The position is given in character cells, where (0, 0) is the | 1681 | The position is given in character cells, where (0, 0) is the |
| 1682 | upper-left corner. | 1682 | upper-left corner of the frame, X is the horizontal offset, and Y is |
| 1683 | the vertical offset. | ||
| 1683 | If Emacs is running on a mouseless terminal or hasn't been programmed | 1684 | If Emacs is running on a mouseless terminal or hasn't been programmed |
| 1684 | to read the mouse position, it returns the selected frame for FRAME | 1685 | to read the mouse position, it returns the selected frame for FRAME |
| 1685 | and nil for X and Y. | 1686 | and nil for X and Y. |
| @@ -1727,7 +1728,8 @@ DEFUN ("mouse-pixel-position", Fmouse_pixel_position, | |||
| 1727 | Smouse_pixel_position, 0, 0, 0, | 1728 | Smouse_pixel_position, 0, 0, 0, |
| 1728 | doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. | 1729 | doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. |
| 1729 | The position is given in pixel units, where (0, 0) is the | 1730 | The position is given in pixel units, where (0, 0) is the |
| 1730 | upper-left corner. | 1731 | upper-left corner of the frame, X is the horizontal offset, and Y is |
| 1732 | the vertical offset. | ||
| 1731 | If Emacs is running on a mouseless terminal or hasn't been programmed | 1733 | If Emacs is running on a mouseless terminal or hasn't been programmed |
| 1732 | to read the mouse position, it returns the selected frame for FRAME | 1734 | to read the mouse position, it returns the selected frame for FRAME |
| 1733 | and nil for X and Y. */) | 1735 | and nil for X and Y. */) |
| @@ -1760,6 +1762,10 @@ Coordinates are relative to the frame, not a window, | |||
| 1760 | so the coordinates of the top left character in the frame | 1762 | so the coordinates of the top left character in the frame |
| 1761 | may be nonzero due to left-hand scroll bars or the menu bar. | 1763 | may be nonzero due to left-hand scroll bars or the menu bar. |
| 1762 | 1764 | ||
| 1765 | The position is given in character cells, where (0, 0) is the | ||
| 1766 | upper-left corner of the frame, X is the horizontal offset, and Y is | ||
| 1767 | the vertical offset. | ||
| 1768 | |||
| 1763 | This function is a no-op for an X frame that is not visible. | 1769 | This function is a no-op for an X frame that is not visible. |
| 1764 | If you have just created a frame, you must wait for it to become visible | 1770 | If you have just created a frame, you must wait for it to become visible |
| 1765 | before calling this function on it, like this. | 1771 | before calling this function on it, like this. |
| @@ -1792,6 +1798,9 @@ before calling this function on it, like this. | |||
| 1792 | DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, | 1798 | DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, |
| 1793 | Sset_mouse_pixel_position, 3, 3, 0, | 1799 | Sset_mouse_pixel_position, 3, 3, 0, |
| 1794 | doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME. | 1800 | doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME. |
| 1801 | The position is given in pixels, where (0, 0) is the upper-left corner | ||
| 1802 | of the frame, X is the horizontal offset, and Y is the vertical offset. | ||
| 1803 | |||
| 1795 | Note, this is a no-op for an X frame that is not visible. | 1804 | Note, this is a no-op for an X frame that is not visible. |
| 1796 | If you have just created a frame, you must wait for it to become visible | 1805 | If you have just created a frame, you must wait for it to become visible |
| 1797 | before calling this function on it, like this. | 1806 | before calling this function on it, like this. |