summaryrefslogtreecommitdiff
path: root/lisp/mouse.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 169d2632f4f..5eeee1ec52c 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -2349,7 +2349,15 @@ choose a font."
If the value is a modifier, such as `control' or `shift' or `meta',
then if that modifier key is pressed when dropping the region, region
text is copied instead of being cut."
- :type 'symbol
+ :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"
:group 'mouse)