diff options
| author | Tak Kunihiro | 2017-05-27 14:57:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-05-27 14:57:11 +0300 |
| commit | c0f2c298772fbb1dcaa1da3e9c2760e09147e115 (patch) | |
| tree | 17d694e3cedd4a3f756c6e0deae131fafb8e0e62 /doc | |
| parent | 6f63c7cb6a02d913d195410e4df85fad5832db06 (diff) | |
| download | emacs-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.texi | 12 |
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 | |||
| 1074 | conventions of the application it came from) into the directory | 1074 | conventions of the application it came from) into the directory |
| 1075 | displayed in that buffer. | 1075 | displayed 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 | ||
| 1079 | another portion of this or another buffer. To enable that, customize | ||
| 1080 | the variable @code{mouse-drag-and-drop-region} to a non-nil value. | ||
| 1081 | Normally, the text is moved, i.e. cut and pasted, when the destination | ||
| 1082 | is the same buffer as the origin; dropping the region on another | ||
| 1083 | buffer copies the text instead. If the value of this variable names a | ||
| 1084 | modifier key, such as @samp{shift} or @samp{control} or @samp{alt}, | ||
| 1085 | then pressing that modifier key when dropping the text will copy it | ||
| 1086 | instead of cutting it, even if you drop on the same buffer as the one | ||
| 1087 | from 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 |
| 1079 | you prefer to visit the file in a new window in such cases, customize | 1091 | you prefer to visit the file in a new window in such cases, customize |