diff options
| author | Mattias EngdegÄrd | 2019-10-25 11:16:39 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2019-11-27 13:40:29 +0100 |
| commit | 4eb7db5d4b84708912c63a77569c8adeeff6c640 (patch) | |
| tree | e4f014f3b2b2407ec74e875a8ef2ab3bc37b2225 /doc/lispref | |
| parent | e7b4c248a6d2a2eca19a2a362103a7f24cfe30fc (diff) | |
| download | emacs-4eb7db5d4b84708912c63a77569c8adeeff6c640.tar.gz emacs-4eb7db5d4b84708912c63a77569c8adeeff6c640.zip | |
Mouse rectangular region selection (bug#38013)
Make it possible to select a rectangular region using the mouse.
The standard binding is C-M-mouse-1.
* lisp/mouse.el (mouse-scroll-subr): Add ADJUST argument.
(mouse-drag-region-rectangle): New.
* lisp/rect.el (rectangle--reset-point-crutches): New.
(rectangle--reset-crutches): Use 'rectangle--reset-point-crutches'.
* src/xdisp.c (remember_mouse_glyph, syms_of_xdisp):
Add 'mouse-fine-grained-tracking'.
* doc/lispref/commands.texi (Motion Events):
Document 'mouse-fine-grained-tracking'.
* doc/emacs/frames.texi (Mouse Commands):
* doc/emacs/killing.texi (Rectangles):
* etc/NEWS: Document rectangular selection with the mouse.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/commands.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index 0c848a80257..032f005e9c4 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -1661,6 +1661,12 @@ events within its body. Outside of @code{track-mouse} forms, Emacs | |||
| 1661 | does not generate events for mere motion of the mouse, and these | 1661 | does not generate events for mere motion of the mouse, and these |
| 1662 | events do not appear. @xref{Mouse Tracking}. | 1662 | events do not appear. @xref{Mouse Tracking}. |
| 1663 | 1663 | ||
| 1664 | @defvar mouse-fine-grained-tracking | ||
| 1665 | When non-@code{nil}, mouse motion events are generated even for very | ||
| 1666 | small movements. Otherwise, motion events are not generated as long | ||
| 1667 | as the mouse cursor remains pointing to the same glyph in the text. | ||
| 1668 | @end defvar | ||
| 1669 | |||
| 1664 | @node Focus Events | 1670 | @node Focus Events |
| 1665 | @subsection Focus Events | 1671 | @subsection Focus Events |
| 1666 | @cindex focus event | 1672 | @cindex focus event |