From a0e3b06725a48379a2e341f90dd090f042ad8e18 Mon Sep 17 00:00:00 2001 From: Tak Kunihiro Date: Fri, 22 Dec 2017 09:39:07 +0100 Subject: [PATCH] Document 'mouse-drag-and-drop-region' options and mention them in NEWS * doc/emacs/frames.texi (Drag and Drop): * etc/NEWS (times): Document options for 'mouse-drag-and-drop-region' and mention them in NEWS. --- doc/emacs/frames.texi | 9 +++++++++ etc/NEWS | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index 58e70eefaf5..5a052600ce4 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi @@ -1114,6 +1114,15 @@ names a modifier key, such as @samp{shift}, @samp{control} or will copy it instead of cutting it, even if you drop on the same buffer as the one from which the text came. +In order to cut text even when source and destination buffers differ, +set the option +@code{mouse-drag-and-drop-region-cut-when-buffers-differ} to a +non-@code{nil} value. By default, on a graphic display the selected +text is shown in a tooltip and point moves together with the mouse +cursor during dragging. To suppress such behavior, set the options +@code{mouse-drag-and-drop-region-show-tooltip} and/or +@code{mouse-drag-and-drop-region-show-cursor} to @code{nil}. + @node Menu Bars @section Menu Bars diff --git a/etc/NEWS b/etc/NEWS index d751adde9b5..7ad852ec715 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -264,7 +264,11 @@ point to the beginning of the region. +++ ** The new user option 'mouse-drag-and-drop-region' allows to drag the -entire region of text to another place or another buffer. +entire region of text to another place or another buffer. Its +behavior is customizable via the new options +'mouse-drag-and-drop-region-cut-when-buffers-differ', +'mouse-drag-and-drop-region-show-tooltip' and +'mouse-drag-and-drop-region-show-cursor'. +++ ** The new user option 'confirm-kill-processes' allows the user to -- 2.39.5