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