]> git.eshelyaron.com Git - emacs.git/commit
Mouse rectangular region selection (bug#38013)
authorMattias Engdegård <mattiase@acm.org>
Fri, 25 Oct 2019 09:16:39 +0000 (11:16 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 27 Nov 2019 12:40:29 +0000 (13:40 +0100)
commit4eb7db5d4b84708912c63a77569c8adeeff6c640
treee4f014f3b2b2407ec74e875a8ef2ab3bc37b2225
parente7b4c248a6d2a2eca19a2a362103a7f24cfe30fc
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.
doc/emacs/frames.texi
doc/emacs/killing.texi
doc/lispref/commands.texi
etc/NEWS
lisp/mouse.el
lisp/rect.el
src/xdisp.c