GNU bug report logs - #41251
28.0.50; Cannot customize mouse-drag-and-drop-region modifier

Previous Next

Package: emacs;

Reported by: David Ponce <da_vid <at> orange.fr>

Date: Thu, 14 May 2020 08:49:02 UTC

Severity: normal

Found in version 28.0.50

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41251 in the body.
You can then email your comments to 41251 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#41251; Package emacs. (Thu, 14 May 2020 08:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Ponce <da_vid <at> orange.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 14 May 2020 08:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: David Ponce <da_vid <at> orange.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Cannot customize mouse-drag-and-drop-region modifier
Date: Thu, 14 May 2020 10:48:13 +0200
Hello,

There is an issue in the definition of `mouse-drag-and-drop-region' that
will not correctly set the option depending on selected modifier. That
is, when any option "Enable, but copy with the MODIFIER modifier" is
set, the value of `mouse-drag-and-drop-region' is always set to the
symbol 'modifier instead of 'alt, 'super, 'hyper, 'shift, 'control, or
'meta, depending on the selected option. It seems due to a missing comma
in the backquote expression.

The below patch fixed the issue for me:

diff --git a/installs/emacs/lisp/mouse.el b/emacs.d/mouse.el
index 9703d95..795b4da 100644
--- a/installs/emacs/lisp/mouse.el
+++ b/emacs.d/mouse.el
@@ -2556,7 +2556,7 @@ region, text is copied instead of being cut."
              (lambda (modifier)
                `(const :tag ,(format "Enable, but copy with the %s modifier"
                                      modifier)
-                       modifier))
+                       ,modifier))
              '(alt super hyper shift control meta))
           (other :tag "Enable dragging the region" t))
   :version "26.1")

Thanks!

In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0)
 of 2020-05-12 built on kilauea
Repository revision: 4645430b9287c3f5ae9863d465a5dd4158e313a9
Repository branch: master
Windowing system distributor 'Fedora Project', version 11.0.12006000
System Description: Fedora 31 (KDE Plasma)





Reply sent to Mattias Engdegård <mattiase <at> acm.org>:
You have taken responsibility. (Thu, 14 May 2020 10:28:02 GMT) Full text and rfc822 format available.

Notification sent to David Ponce <da_vid <at> orange.fr>:
bug acknowledged by developer. (Thu, 14 May 2020 10:28:02 GMT) Full text and rfc822 format available.

Message #10 received at 41251-done <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattiase <at> acm.org>
To: David Ponce <da_vid <at> orange.fr>
Cc: 41251-done <at> debbugs.gnu.org
Subject: bug#41251: 28.0.50; Cannot customize mouse-drag-and-drop-region
 modifier 
Date: Thu, 14 May 2020 12:27:26 +0200
Thank you, fixed on master.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 11 Jun 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 70 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.