aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPo Lu2022-04-03 09:14:24 +0800
committerPo Lu2022-04-03 09:14:24 +0800
commit1694f82e5f91f1ea96604c7c0aee4537fbada765 (patch)
tree57940412128e124204b052e15c185f799ca89f3f /doc
parent4afd34edd34ef734eda36efda08add5566a72fd9 (diff)
downloademacs-1694f82e5f91f1ea96604c7c0aee4537fbada765.tar.gz
emacs-1694f82e5f91f1ea96604c7c0aee4537fbada765.zip
Add user options to move point and scroll window during DND
* doc/emacs/frames.texi (Drag and Drop): * etc/NEWS: Document new options 'dnd-scroll-margin' and 'dnd-indicate-insertion-point'. * lisp/dnd.el (dnd-protocol-alist): (dnd-open-remote-file-function): (dnd-open-file-other-window): Add right group to defcustoms. (dnd-scroll-margin, dnd-indicate-insertion-point): New user options. (dnd-handle-movement): New function. * lisp/x-dnd.el (x-dnd-handle-xdnd): (x-dnd-handle-motif): Call `dnd-handle-movement' when appropriate.
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 7489344cda9..560870a4ed2 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -1196,6 +1196,18 @@ the variable @code{dnd-open-file-other-window}.
1196 The XDND and Motif drag and drop protocols, and the old KDE 1.x 1196 The XDND and Motif drag and drop protocols, and the old KDE 1.x
1197protocol, are currently supported. 1197protocol, are currently supported.
1198 1198
1199@vindex dnd-indicate-insertion-point
1200@vindex dnd-scroll-margin
1201
1202 It can be difficult to scroll a window or determine where dropped
1203text will be inserted while dragging text onto an Emacs window.
1204Setting the option @var{dnd-indicate-insertion-point} to a
1205non-@code{nil} value makes point move to the location any dropped text
1206will be inserted when the mouse moves in a window during drag, and
1207setting @code{dnd-scroll-margin} to an integer value causes a window
1208to be scrolled if the mouse moves within that many lines of the top
1209or bottom of the window during drag.
1210
1199@vindex mouse-drag-and-drop-region 1211@vindex mouse-drag-and-drop-region
1200 Emacs can also optionally drag the region with the mouse into 1212 Emacs can also optionally drag the region with the mouse into
1201another portion of this or another buffer. To enable that, customize 1213another portion of this or another buffer. To enable that, customize