aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTak Kunihiro2017-05-27 14:57:11 +0300
committerEli Zaretskii2017-05-27 14:57:11 +0300
commitc0f2c298772fbb1dcaa1da3e9c2760e09147e115 (patch)
tree17d694e3cedd4a3f756c6e0deae131fafb8e0e62 /doc
parent6f63c7cb6a02d913d195410e4df85fad5832db06 (diff)
downloademacs-c0f2c298772fbb1dcaa1da3e9c2760e09147e115.tar.gz
emacs-c0f2c298772fbb1dcaa1da3e9c2760e09147e115.zip
Support drag and drop of region by mouse (Bug#26725)
* doc/emacs/frames.texi (Drag and Drop): Document support of drag and drop region by mouse. * lisp/mouse.el (mouse-drag-region): Call mouse-drag-and-drop-region when start-event is on region. (mouse-drag-and-drop-region): New function, moves the region by (mouse-drag-and-drop-region): New defcustom. * etc/NEWS: Mention mouse-drag-and-drop-region.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/frames.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index 68c12d272f8..8984555066b 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -1074,6 +1074,18 @@ file on a Dired buffer moves or copies the file (according to the
1074conventions of the application it came from) into the directory 1074conventions of the application it came from) into the directory
1075displayed in that buffer. 1075displayed in that buffer.
1076 1076
1077@vindex mouse-drag-and-drop-region
1078 Emacs can also optionally drag the region of text by mouse into
1079another portion of this or another buffer. To enable that, customize
1080the variable @code{mouse-drag-and-drop-region} to a non-nil value.
1081Normally, the text is moved, i.e. cut and pasted, when the destination
1082is the same buffer as the origin; dropping the region on another
1083buffer copies the text instead. If the value of this variable names a
1084modifier key, such as @samp{shift} or @samp{control} or @samp{alt},
1085then pressing that modifier key when dropping the text will copy it
1086instead of cutting it, even if you drop on the same buffer as the one
1087from which the text came.
1088
1077@vindex dnd-open-file-other-window 1089@vindex dnd-open-file-other-window
1078 Dropping a file normally visits it in the window you drop it on. If 1090 Dropping a file normally visits it in the window you drop it on. If
1079you prefer to visit the file in a new window in such cases, customize 1091you prefer to visit the file in a new window in such cases, customize