diff options
| author | Daniel Koning | 2015-01-21 09:01:30 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2015-01-21 09:01:30 +0100 |
| commit | 3ea1b31f46f21ecfb089628e63187970fdb58d5a (patch) | |
| tree | f02efdd511dfb3eecb1583bd454912c2bc70abc3 /doc | |
| parent | 4c09e3aef9a366ffebd314d01f666e04bd7798e2 (diff) | |
| download | emacs-3ea1b31f46f21ecfb089628e63187970fdb58d5a.tar.gz emacs-3ea1b31f46f21ecfb089628e63187970fdb58d5a.zip | |
Prevent artist-mode from creating runaway timers (Bug#6130).
* subr.el (posnp): Correct docstring of `posnp'.
(posn-col-row): Make it work with all mouse position objects.
* textmodes/artist.el (artist-mouse-draw-continously): Cancel
timers if an error occurs during continuous drawing. (Bug#6130)
* commands.texi (Drag Events, Motion Events, Event Examples)
(Accessing Mouse): Describe actual range of values that mouse
position objects can have.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/commands.texi | 23 |
2 files changed, 25 insertions, 4 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 11a6f32718c..52c621c1fa5 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2015-01-21 Daniel Koning <dk@danielkoning.com> (tiny change) | ||
| 2 | |||
| 3 | * commands.texi (Drag Events, Motion Events, Event Examples) | ||
| 4 | (Accessing Mouse): Describe actual range of values that mouse | ||
| 5 | position objects can have. | ||
| 6 | |||
| 1 | 2015-01-20 Eli Zaretskii <eliz@gnu.org> | 7 | 2015-01-20 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * display.texi (Manipulating Buttons): Explain more about the | 9 | * display.texi (Manipulating Buttons): Explain more about the |
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index a503e3f117b..5ea1a48b262 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -1485,8 +1485,10 @@ prefix @samp{drag-}. For example, dragging the mouse with button 2 | |||
| 1485 | held down generates a @code{drag-mouse-2} event. The second and third | 1485 | held down generates a @code{drag-mouse-2} event. The second and third |
| 1486 | elements of the event give the starting and ending position of the | 1486 | elements of the event give the starting and ending position of the |
| 1487 | drag, as mouse position lists (@pxref{Click Events}). You can access | 1487 | drag, as mouse position lists (@pxref{Click Events}). You can access |
| 1488 | the second element of any mouse event in the same way, with no need to | 1488 | the second element of any mouse event in the same way. However, the |
| 1489 | distinguish drag events from others. | 1489 | drag event may end outside the boundaries of the frame that was |
| 1490 | initially selected. In that case, the third element's position list | ||
| 1491 | contains that frame in place of a window. | ||
| 1490 | 1492 | ||
| 1491 | The @samp{drag-} prefix follows the modifier key prefixes such as | 1493 | The @samp{drag-} prefix follows the modifier key prefixes such as |
| 1492 | @samp{C-} and @samp{M-}. | 1494 | @samp{C-} and @samp{M-}. |
| @@ -1631,7 +1633,10 @@ represented by lists that look like this: | |||
| 1631 | 1633 | ||
| 1632 | @noindent | 1634 | @noindent |
| 1633 | @var{position} is a mouse position list (@pxref{Click Events}), | 1635 | @var{position} is a mouse position list (@pxref{Click Events}), |
| 1634 | specifying the current position of the mouse cursor. | 1636 | specifying the current position of the mouse cursor. As with the |
| 1637 | end-position of a drag event, this position list may represent a | ||
| 1638 | location outside the boundaries of the initially selected frame, in | ||
| 1639 | which case the list contains that frame in place of a window. | ||
| 1635 | 1640 | ||
| 1636 | The special form @code{track-mouse} enables generation of motion | 1641 | The special form @code{track-mouse} enables generation of motion |
| 1637 | events within its body. Outside of @code{track-mouse} forms, Emacs | 1642 | events within its body. Outside of @code{track-mouse} forms, Emacs |
| @@ -1846,6 +1851,14 @@ into another window. That produces a pair of events like these: | |||
| 1846 | -453816)) | 1851 | -453816)) |
| 1847 | @end smallexample | 1852 | @end smallexample |
| 1848 | 1853 | ||
| 1854 | The frame with input focus might not take up the entire screen, and | ||
| 1855 | the user might move the mouse outside the scope of the frame. Inside | ||
| 1856 | the @code{track-mouse} special form, that produces an event like this: | ||
| 1857 | |||
| 1858 | @smallexample | ||
| 1859 | (mouse-movement (#<frame *ielm* 0x102849a30> nil (563 . 205) 532301936)) | ||
| 1860 | @end smallexample | ||
| 1861 | |||
| 1849 | To handle a SIGUSR1 signal, define an interactive function, and | 1862 | To handle a SIGUSR1 signal, define an interactive function, and |
| 1850 | bind it to the @code{signal usr1} event sequence: | 1863 | bind it to the @code{signal usr1} event sequence: |
| 1851 | 1864 | ||
| @@ -2010,7 +2023,9 @@ Events}); and @code{nil} otherwise. | |||
| 2010 | various parts of it: | 2023 | various parts of it: |
| 2011 | 2024 | ||
| 2012 | @defun posn-window position | 2025 | @defun posn-window position |
| 2013 | Return the window that @var{position} is in. | 2026 | Return the window that @var{position} is in. If @var{position} |
| 2027 | represents a location outside the frame where the event was initiated, | ||
| 2028 | return that frame instead. | ||
| 2014 | @end defun | 2029 | @end defun |
| 2015 | 2030 | ||
| 2016 | @defun posn-area position | 2031 | @defun posn-area position |