summaryrefslogtreecommitdiff
path: root/doc/emacs/killing.texi
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2019-10-25 11:16:39 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2019-11-27 13:40:29 +0100
commit4eb7db5d4b84708912c63a77569c8adeeff6c640 (patch)
treee4f014f3b2b2407ec74e875a8ef2ab3bc37b2225 /doc/emacs/killing.texi
parente7b4c248a6d2a2eca19a2a362103a7f24cfe30fc (diff)
downloademacs-4eb7db5d4b84708912c63a77569c8adeeff6c640.tar.gz
emacs-4eb7db5d4b84708912c63a77569c8adeeff6c640.tar.bz2
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/emacs/killing.texi')
-rw-r--r--doc/emacs/killing.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi
index 80e2868908a..ce00cb38a74 100644
--- a/doc/emacs/killing.texi
+++ b/doc/emacs/killing.texi
@@ -732,6 +732,9 @@ region is controlled. But remember that a given combination of point
and mark values can be interpreted either as a region or as a
rectangle, depending on the command that uses them.
+ A rectangular region can also be marked using the mouse: click and drag
+@kbd{C-M-mouse-1} from one corner of the rectangle to the opposite.
+
@table @kbd
@item C-x r k
Kill the text of the region-rectangle, saving its contents as the