From unknown Thu Aug 21 12:12:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41251: 28.0.50; Cannot customize mouse-drag-and-drop-region modifier Resent-From: David Ponce Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2020 08:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41251 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 41251@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158944610727120 (code B ref -1); Thu, 14 May 2020 08:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 May 2020 08:48:27 +0000 Received: from localhost ([127.0.0.1]:60183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZ9XX-00073M-4z for submit@debbugs.gnu.org; Thu, 14 May 2020 04:48:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:45210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZ9XV-00073C-Ll for submit@debbugs.gnu.org; Thu, 14 May 2020 04:48:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZ9XT-0002wF-1C for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 04:48:24 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:32650 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1jZ9XP-0005Ng-2p for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 04:48:22 -0400 Received: from [192.168.1.25] ([90.42.181.188]) by mwinf5d13 with ME id eYoD2200M44HMX603YoDRZ; Thu, 14 May 2020 10:48:14 +0200 X-ME-Helo: [192.168.1.25] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Thu, 14 May 2020 10:48:14 +0200 X-ME-IP: 90.42.181.188 From: David Ponce Message-ID: Date: Thu, 14 May 2020 10:48:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=80.12.242.129; envelope-from=da_vid@orange.fr; helo=smtp.smtpout.orange.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 04:48:14 X-ACL-Warn: Detected OS = Linux 2.6.x [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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) From unknown Thu Aug 21 12:12:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: David Ponce Subject: bug#41251: closed (bug#41251: 28.0.50; Cannot customize mouse-drag-and-drop-region modifier ) Message-ID: References: <7FB70A25-EE3B-4472-986C-8EB84F643E8F@acm.org> X-Gnu-PR-Message: they-closed 41251 X-Gnu-PR-Package: emacs Reply-To: 41251@debbugs.gnu.org Date: Thu, 14 May 2020 10:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1589452082-6868-1" This is a multi-part message in MIME format... ------------=_1589452082-6868-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #41251: 28.0.50; Cannot customize mouse-drag-and-drop-region modifier which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 41251@debbugs.gnu.org. --=20 41251: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41251 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1589452082-6868-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 41251-done) by debbugs.gnu.org; 14 May 2020 10:27:34 +0000 Received: from localhost ([127.0.0.1]:60344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZB5R-0001lj-KD for submit@debbugs.gnu.org; Thu, 14 May 2020 06:27:33 -0400 Received: from mail239c50.megamailservers.eu ([91.136.10.249]:44586 helo=mail56c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZB5P-0001lX-1g for 41251-done@debbugs.gnu.org; Thu, 14 May 2020 06:27:31 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1589452049; bh=YsK5AdbqrO2qPlk2/K+tItf/CSHeZSi7/KooR08sL6M=; h=From:Subject:Date:Cc:To:From; b=lTBjqgmPuAu0K0/aY2FMCAM8ALdV1+eiexZXWMncqrZKzi1Y/jHU+OE3T+N4OIkH0 KMRayQdQlw+vgl6a9d2+Qo9S8vwIYrP8P02VsipS0bOAz6RF7uBpJrlIZ7KREBjTx1 +zMlTzI+/qK0LPZYl7/tUNUXSI7v9Y6uCTS86wrc= Feedback-ID: mattiase@acm.or Received: from stanniol.lan (c-4e4ae655.032-75-73746f71.bbcust.telenor.se [85.230.74.78]) (authenticated bits=0) by mail56c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 04EARQFf010109; Thu, 14 May 2020 10:27:28 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: bug#41251: 28.0.50; Cannot customize mouse-drag-and-drop-region modifier Message-Id: <7FB70A25-EE3B-4472-986C-8EB84F643E8F@acm.org> Date: Thu, 14 May 2020 12:27:26 +0200 To: David Ponce X-Mailer: Apple Mail (2.3445.104.14) X-CTCH-RefID: str=0001.0A782F1C.5EBD1CDA.00F9, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=UqsdyN4B c=1 sm=1 tr=0 a=klNLuyVZdLUgl+K5Uafb2A==:117 a=klNLuyVZdLUgl+K5Uafb2A==:17 a=kj9zAlcOel0A:10 a=xyLGPAzUSdAA:10 a=M51BFTxLslgA:10 a=4ZI_1X23NW8NMgs6MkYA:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thank you, fixed on master. Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: megamailservers.eu] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.3 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Debbugs-Envelope-To: 41251-done Cc: 41251-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Thank you, fixed on master. ------------=_1589452082-6868-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 May 2020 08:48:27 +0000 Received: from localhost ([127.0.0.1]:60183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZ9XX-00073M-4z for submit@debbugs.gnu.org; Thu, 14 May 2020 04:48:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:45210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZ9XV-00073C-Ll for submit@debbugs.gnu.org; Thu, 14 May 2020 04:48:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZ9XT-0002wF-1C for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 04:48:24 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:32650 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1jZ9XP-0005Ng-2p for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 04:48:22 -0400 Received: from [192.168.1.25] ([90.42.181.188]) by mwinf5d13 with ME id eYoD2200M44HMX603YoDRZ; Thu, 14 May 2020 10:48:14 +0200 X-ME-Helo: [192.168.1.25] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Thu, 14 May 2020 10:48:14 +0200 X-ME-IP: 90.42.181.188 To: bug-gnu-emacs@gnu.org From: David Ponce Subject: 28.0.50; Cannot customize mouse-drag-and-drop-region modifier Message-ID: Date: Thu, 14 May 2020 10:48:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=80.12.242.129; envelope-from=da_vid@orange.fr; helo=smtp.smtpout.orange.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 04:48:14 X-ACL-Warn: Detected OS = Linux 2.6.x [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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) ------------=_1589452082-6868-1--