Variable: mouse-drag-and-drop-region
mouse-drag-and-drop-region is a customizable variable defined in
mouse.el.gz.
Value
nil
Documentation
If non-nil, dragging the mouse drags the region, if it exists.
If the value is a modifier, such as control or shift or
meta, then if that modifier key is pressed when dropping the
region, text is copied instead of being cut.
This variable was added, or its default value changed, in Emacs 26.1.
Probably introduced at or before Emacs version 26.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mouse.el.gz
;; Drag and drop support.
(defcustom mouse-drag-and-drop-region nil
"If non-nil, dragging the mouse drags the region, if it exists.
If the value is a modifier, such as `control' or `shift' or
`meta', then if that modifier key is pressed when dropping the
region, text is copied instead of being cut."
:type `(choice
(const :tag "Disable dragging the region" nil)
,@(mapcar
(lambda (modifier)
`(const :tag ,(format "Enable, but copy with the %s modifier"
modifier)
,modifier))
'(alt super hyper shift control meta))
(other :tag "Enable dragging the region" t))
:version "26.1")