From unknown Thu Aug 14 21:49:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24755 <24755@debbugs.gnu.org> To: bug#24755 <24755@debbugs.gnu.org> Subject: Status: 25.1; Selection continues with no mouse button pressed Reply-To: bug#24755 <24755@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:49:06 +0000 retitle 24755 25.1; Selection continues with no mouse button pressed reassign 24755 emacs submitter 24755 Mats Palmgren severity 24755 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 21 11:35:03 2016 Received: (at submit) by debbugs.gnu.org; 21 Oct 2016 15:35:03 +0000 Received: from localhost ([127.0.0.1]:45114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxbqZ-0006ls-9R for submit@debbugs.gnu.org; Fri, 21 Oct 2016 11:35:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxbF2-0005o9-W0 for submit@debbugs.gnu.org; Fri, 21 Oct 2016 10:56:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxbEw-0005gh-Uh for submit@debbugs.gnu.org; Fri, 21 Oct 2016 10:56:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bxbEw-0005gd-Rf for submit@debbugs.gnu.org; Fri, 21 Oct 2016 10:56:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxbEv-0004sO-Rm for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 10:56:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxbEq-0005cy-Sp for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 10:56:09 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:33375) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bxbEq-0005cV-KO for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 10:56:04 -0400 Received: by mail-lf0-x244.google.com with SMTP id l131so6052583lfl.0 for ; Fri, 21 Oct 2016 07:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=KOmy5nC55Y6H5ae6UpjtL/vmXEdpwyfP+3gC3CQnXV4=; b=IxmRbWCUxcx40aaKSuBDWqn4DbmOJ85CmdI2igt/jnbYw0jXOt6hUf0bgIdsg6xeao NyVaTSMf+4PJjsBvFyL/5WxX9awlTNlLsO9ZmhB8XYtGnwkT/QsG7f4QmsDYheWM8Sh2 sVknhP322iU4jHxXALHvPcR5gL3T0aeaOtmPXZJJEsKgxfF6saWSL27D9vmuEHsCSnaU VtvUDw1hhVJg2SXRsi/5iJlpmfo7mRWq+yIAxgbhWN0g5+zo+l5/iyJVuIqeZkUTv+6G zh9fIhlwFI1uzzAWccuXeC/AkA2Scg6Cl4pFckWyWcdHBosLViA/g1RtRWOaTqeyolYX kYKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=KOmy5nC55Y6H5ae6UpjtL/vmXEdpwyfP+3gC3CQnXV4=; b=EpP6ryzcjHUb7sQwDyub2AsiBcVIc6cVFtFZEoRHlQ8JuNZLGWFWiXlr78ZBly6gyb LmZbwRfWFf/drMrtcHyGozO01Yn38Gyt7yTM5mxkWZySDRLLwzvoWmLux9GX661JFhvR GkLhO4wyLjD4YZEQNruabC7VXGysBnJCv+aoc0Ua7XS8Ti3bj9bIVFhNaITQc5EhOEnb +vtXRI/FSZSe2xPAo9FctRZB9GbN6LsG0H7sv1yehTSh3ZWDjgcAgRW6pTcZQTltdmFv em4bZNuJejryIgiErfr8Pv+vtBb6xG9e8Hopv7lJtuglC098Ze3S2OD8U5jRwyFQQMc7 d5tw== X-Gm-Message-State: ABUngveS6kXXjsyhcLG+bQYdsorUfo7JLJL/sPWPLec0wgB2sCaXIX9NLdxAShJbAMzvGA== X-Received: by 10.25.193.198 with SMTP id r189mr802362lff.21.1477061762494; Fri, 21 Oct 2016 07:56:02 -0700 (PDT) Received: from [192.168.88.2] (h-235-34.a149.priv.bahnhof.se. [85.24.235.34]) by smtp.gmail.com with ESMTPSA id 23sm529042ljf.9.2016.10.21.07.56.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Oct 2016 07:56:01 -0700 (PDT) To: bug-gnu-emacs@gnu.org From: Mats Palmgren Subject: 25.1; Selection continues with no mouse button pressed Message-ID: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> Date: Fri, 21 Oct 2016 16:56:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Thunderbird/49.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 21 Oct 2016 11:35:02 -0400 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: -4.0 (----) 1. Visit a buffer with some text 2. Press the left mouse button 3. Drag the mouse to select some text 4. Press the Control key 5. Release the mouse button 6. Continue to move the mouse Actual Result: Moving the mouse continues to select text, even though no mouse button or keys are pressed. Expected Result: Selection should stop at 5. Unfortunately, it's fairly common for me to do 4 before 5 (in preparation for deleting the selection with C-w for example) so version 25 is unusable for me with this bug. This is a new behavior in v25, it's not present in v23 or earlier versions that I've used. In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9) Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.1 LTS Thanks, Mats From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 22 05:04:54 2016 Received: (at 24755) by debbugs.gnu.org; 22 Oct 2016 09:04:54 +0000 Received: from localhost ([127.0.0.1]:45842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxsEY-0002VP-JC for submit@debbugs.gnu.org; Sat, 22 Oct 2016 05:04:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxsEX-0002Uz-7Q for 24755@debbugs.gnu.org; Sat, 22 Oct 2016 05:04:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxsEO-0003AT-VW for 24755@debbugs.gnu.org; Sat, 22 Oct 2016 05:04:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxsEO-0003AE-SQ; Sat, 22 Oct 2016 05:04:44 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4835 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bxsEI-0008LD-CX; Sat, 22 Oct 2016 05:04:40 -0400 Date: Sat, 22 Oct 2016 12:04:30 +0300 Message-Id: <83inskrbz5.fsf@gnu.org> From: Eli Zaretskii To: Mats Palmgren , Stefan Monnier In-reply-to: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> (message from Mats Palmgren on Fri, 21 Oct 2016 16:56:00 +0200) Subject: Re: bug#24755: 25.1; Selection continues with no mouse button pressed References: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 24755 Cc: 24755@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) > From: Mats Palmgren > Date: Fri, 21 Oct 2016 16:56:00 +0200 > > 1. Visit a buffer with some text > 2. Press the left mouse button > 3. Drag the mouse to select some text > 4. Press the Control key > 5. Release the mouse button > 6. Continue to move the mouse > > Actual Result: > Moving the mouse continues to select text, even though no mouse button > or keys are pressed. > > Expected Result: > Selection should stop at 5. Stefan, could you please fix this? It seems to be due to changes in how mouse-drag-track handles mouse events: in Emacs 24.5, the code handled mouse clicks as well, whereas now it doesn't seem to. So releasing the mouse button while Ctrl or Shift is pressed signals an error now, instead of finishing the drag event. The fix should go to the emacs-25 branch. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 22 05:06:23 2016 Received: (at control) by debbugs.gnu.org; 22 Oct 2016 09:06:23 +0000 Received: from localhost ([127.0.0.1]:45846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxsFy-0002ae-TR for submit@debbugs.gnu.org; Sat, 22 Oct 2016 05:06:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxsFx-0002aH-Il for control@debbugs.gnu.org; Sat, 22 Oct 2016 05:06:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxsFp-0003z7-Fj for control@debbugs.gnu.org; Sat, 22 Oct 2016 05:06:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxsFp-0003yz-CR for control@debbugs.gnu.org; Sat, 22 Oct 2016 05:06:13 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4843 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bxsFn-0000pA-Ch for control@debbugs.gnu.org; Sat, 22 Oct 2016 05:06:12 -0400 Date: Sat, 22 Oct 2016 12:06:05 +0300 Message-Id: <83h984rbwi.fsf@gnu.org> From: Eli Zaretskii To: control@debbugs.gnu.org Subject: Block X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: control 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) block 21966 by 24755 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 26 15:30:06 2016 Received: (at 24755-done) by debbugs.gnu.org; 26 Oct 2016 19:30:06 +0000 Received: from localhost ([127.0.0.1]:57888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzTtm-0006Ih-1E for submit@debbugs.gnu.org; Wed, 26 Oct 2016 15:30:06 -0400 Received: from alt34.smtp-out.videotron.ca ([24.53.0.23]:5424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzTtk-0006Gy-4p for 24755-done@debbugs.gnu.org; Wed, 26 Oct 2016 15:30:04 -0400 Received: from ceviche.home ([24.202.159.173]) by Videotron with SMTP id zTtbbQOTFYOXTzTtdbxa08; Wed, 26 Oct 2016 15:29:58 -0400 X-Authority-Analysis: v=2.1 cv=Gfm35VjL c=1 sm=1 tr=0 a=drQ1+/MlVPSpi4JwKQuNfg==:117 a=drQ1+/MlVPSpi4JwKQuNfg==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=CH0kA5CcgfcA:10 a=hRNPX90jC2tJLIyZDqwA:9 Received: by ceviche.home (Postfix, from userid 20848) id CE62566239; Wed, 26 Oct 2016 15:29:55 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#24755: 25.1; Selection continues with no mouse button pressed Message-ID: References: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> <83inskrbz5.fsf@gnu.org> Date: Wed, 26 Oct 2016 15:29:55 -0400 In-Reply-To: <83inskrbz5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Oct 2016 12:04:30 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Envelope: MS4wfMzVo31IKyva8mgbRhkvV1JgK2/lhirEV3Kc+1vzrgOEbELvo/Zxg9Su9vzkNIqIqWDujer1yx22fCNQhmOgdAGvg5FgBPUd0tM+7JqX19Cpz0XAIJ4J YoN5IJfbE7RjwlesLWAnIZfQJTS1bb8CVKXvLwVPvh7aCTIEofVUkdC0eFq86E9sL/iCADdWDnlFxvgsDYaW1EZtzsAmJEjg98AHT5NQLOShyEdST0lL32VT HTmv3CwSVZ6uQKL080eZVgLZuTujYL512W8YH4gR4+o= X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 24755-done Cc: 24755-done@debbugs.gnu.org, Mats Palmgren 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.3 (/) > Stefan, could you please fix this? It seems to be due to changes in > how mouse-drag-track handles mouse events: in Emacs 24.5, the code > handled mouse clicks as well, whereas now it doesn't seem to. So > releasing the mouse button while Ctrl or Shift is pressed signals an > error now, instead of finishing the drag event. > The fix should go to the emacs-25 branch. I pushed the patch below to emacs-25, which should fix it. Stefan diff --git a/lisp/subr.el b/lisp/subr.el index 573f238..07909b8 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -4507,8 +4507,10 @@ set-transient-map ;; exit C-u. t) ((eq t keep-pred) - (eq this-command - (lookup-key map (this-command-keys-vector)))) + (let ((mc (lookup-key map (this-command-keys-vector)))) + ;; If the key is unbound `this-command` is + ;; nil and so is `mc`. + (and mc (eq this-command mc)))) (t (funcall keep-pred))) (funcall exitfun))))) (add-hook 'pre-command-hook clearfun) From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 26 15:53:15 2016 Received: (at 24755) by debbugs.gnu.org; 26 Oct 2016 19:53:15 +0000 Received: from localhost ([127.0.0.1]:57915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzUGA-0006pk-DL for submit@debbugs.gnu.org; Wed, 26 Oct 2016 15:53:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzUG8-0006pW-S2 for 24755@debbugs.gnu.org; Wed, 26 Oct 2016 15:53:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzUFz-0001ZQ-BS for 24755@debbugs.gnu.org; Wed, 26 Oct 2016 15:53:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzUFz-0001ZF-87; Wed, 26 Oct 2016 15:53:03 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2654 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bzUFw-0004Jj-Ec; Wed, 26 Oct 2016 15:53:02 -0400 Date: Wed, 26 Oct 2016 22:52:47 +0300 Message-Id: <83oa26ubu8.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Wed, 26 Oct 2016 15:29:55 -0400) Subject: Re: bug#24755: 25.1; Selection continues with no mouse button pressed References: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> <83inskrbz5.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 24755 Cc: 24755@debbugs.gnu.org, matspal@gmail.com 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > From: Stefan Monnier > Cc: Mats Palmgren , 24755-done@debbugs.gnu.org > Date: Wed, 26 Oct 2016 15:29:55 -0400 > > > Stefan, could you please fix this? It seems to be due to changes in > > how mouse-drag-track handles mouse events: in Emacs 24.5, the code > > handled mouse clicks as well, whereas now it doesn't seem to. So > > releasing the mouse button while Ctrl or Shift is pressed signals an > > error now, instead of finishing the drag event. > > > The fix should go to the emacs-25 branch. > > I pushed the patch below to emacs-25, which should fix it. Thanks. It fixes the original bug, but the resulting behavior is not identical to Emacs 24.5, because once you release mouse-1, the selected text loses its highlight. In Emacs 24.5, the highlight would stay. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 26 16:13:46 2016 Received: (at 24755) by debbugs.gnu.org; 26 Oct 2016 20:13:47 +0000 Received: from localhost ([127.0.0.1]:57922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzUa2-0007IA-N8 for submit@debbugs.gnu.org; Wed, 26 Oct 2016 16:13:46 -0400 Received: from alt24.smtp-out.videotron.ca ([70.80.0.75]:13373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzUa0-0007Hx-Oa for 24755@debbugs.gnu.org; Wed, 26 Oct 2016 16:13:45 -0400 Received: from ceviche.home ([24.202.159.173]) by Videotron with SMTP id zUZtb2zZYPTiyzUZvbxoCR; Wed, 26 Oct 2016 16:13:39 -0400 X-Authority-Analysis: v=2.1 cv=L469O7n8 c=1 sm=1 tr=0 a=drQ1+/MlVPSpi4JwKQuNfg==:117 a=drQ1+/MlVPSpi4JwKQuNfg==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=CH0kA5CcgfcA:10 a=PizftPNhBKcYIqN3SGIA:9 Received: by ceviche.home (Postfix, from userid 20848) id DF4A166239; Wed, 26 Oct 2016 16:13:37 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#24755: 25.1; Selection continues with no mouse button pressed Message-ID: References: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> <83inskrbz5.fsf@gnu.org> <83oa26ubu8.fsf@gnu.org> Date: Wed, 26 Oct 2016 16:13:37 -0400 In-Reply-To: <83oa26ubu8.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Oct 2016 22:52:47 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Envelope: MS4wfJENG6pCc3WQofFZehaRcRUFpVAKNYo+iszsoVJzciuf6EC3My2NnO4bvLjMjnWN5or4KE7P0u5ygYhTmSN5umXLZZzETUnfqI8BUqpALmWSm6wcwjYx yZQlJmccW2w+aHeFmdzjg6eIj+dnkao8vsu/nKlb8gjam+arjIFb5/Zsn3kta0+SATmdPdd1CpofTsIaxUw9guI1aRaiKE57Oww8FYxDbn+vCnij9TOnawzm UoUWbLzAHZ5WiWvAph4Wbb4XFXlLY0pJCgvq9Y/vi8U= X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 24755 Cc: 24755@debbugs.gnu.org, matspal@gmail.com 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.3 (/) > Thanks. It fixes the original bug, but the resulting behavior is not > identical to Emacs 24.5, because once you release mouse-1, the > selected text loses its highlight. In Emacs 24.5, the highlight would > stay. That's because C-mouse-1 and C-drag-mouse-1 aren't bound to anything. It's different, indeed, but the previous behavior was somewhat accidental, I think (e.g. I'm pretty sure it didn't work that way in all cases either, since the old code would sometimes push back the events to be looked up in the global-map, tho not always). We could try to reproduce it, but I think the necessary code would be somewhat ugly/hackish. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 26 16:22:31 2016 Received: (at 24755) by debbugs.gnu.org; 26 Oct 2016 20:22:31 +0000 Received: from localhost ([127.0.0.1]:57929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzUiV-0007V2-Ji for submit@debbugs.gnu.org; Wed, 26 Oct 2016 16:22:31 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:36726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzUiT-0007Uq-VG for 24755@debbugs.gnu.org; Wed, 26 Oct 2016 16:22:30 -0400 Received: by mail-lf0-f54.google.com with SMTP id b75so14643911lfg.3 for <24755@debbugs.gnu.org>; Wed, 26 Oct 2016 13:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=aLHFgq/j/YOYJI9yHnx3JXQEGyHav5nuo887XL5AVWg=; b=s8us845HS5WylynPEX3rnZnG5auLmd1NOUdQ59AHvZ5M4N+HCDxjrZMly5eJFblXur VsMrDwEqG8xB5ScTnYHebOIOI3BWbydmYNrFW+rAUAt66UF2qzH53lYhcuDAJ5NGw5Dw gSVIpD8F5KC21diiGRsy+czplB2ccVLkXv6h6T11Iu6d3JTmCSxrY2Jmk9GWkYmeJIdg XoVHC+7Ex3zf1paBbbmcV1iM8G6c7hRIea5kn5iQc8tqaJyYVk0rH11rZ/smQGr/Y/zg oul6P2pSq7yZy4M5ZiX5YQru/FClbhYhlxM98eTDJWx5TmjB3Zee07hX2Wr7MgZi8mM8 ouiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=aLHFgq/j/YOYJI9yHnx3JXQEGyHav5nuo887XL5AVWg=; b=gyYvUeMoGs6qgt5piIVAr0l/rUGFwvdsYltChhqabsAe1hB/kFIIhXZpocG+dtFP9h kecGlmkigumzddD3EivSofCdVl7107bzSKLh7P4SeqUl+J4kljmN9jjuR7GjX77FZhfO 0axvywibjPIO+4zY2jKkdYDHmbb/1yYJ1DbgLJv52Fm+g13b+b7ZHnX6iHsXfMHGKzFf eHykml0Gehhv7kOWFF3v/iiM3wc4LcGhlYlOV6DGn/xi4j5tTiLZl1ZyG40LeLerfOtW IpVdhK4aGllY11OPGJkUABz3seDpXnvSzPz0zWHdkKm8zgJY2FesFLXn6Vg9f3sJqGRP Piiw== X-Gm-Message-State: ABUngvei3Rxcff1LywH11z+R4xXY7y/RwDra5Y11K7TLbNFVN6MhXfCOQfw0EoF3syJZDA== X-Received: by 10.25.75.65 with SMTP id y62mr3605447lfa.118.1477513344051; Wed, 26 Oct 2016 13:22:24 -0700 (PDT) Received: from [192.168.88.2] (h-235-34.a149.priv.bahnhof.se. [85.24.235.34]) by smtp.gmail.com with ESMTPSA id b76sm673284lfg.25.2016.10.26.13.22.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Oct 2016 13:22:23 -0700 (PDT) Subject: Re: bug#24755: 25.1; Selection continues with no mouse button pressed To: Eli Zaretskii , Stefan Monnier References: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> <83inskrbz5.fsf@gnu.org> <83oa26ubu8.fsf@gnu.org> From: Mats Palmgren Message-ID: <00613eef-12d2-3272-4e36-da5cd4a1bc21@gmail.com> Date: Wed, 26 Oct 2016 22:22:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Thunderbird/49.0 MIME-Version: 1.0 In-Reply-To: <83oa26ubu8.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24755 Cc: 24755@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.7 (/) On 10/26/2016 09:52 PM, Eli Zaretskii wrote: > Thanks. It fixes the original bug, but the resulting behavior is not > identical to Emacs 24.5, because once you release mouse-1, the > selected text loses its highlight. Fwiw, losing the selection in this situation isn't acceptable to me. I'll certainly stay on emacs < 25 until this is fixed to behave as it used to. /Mats From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 26 16:27:12 2016 Received: (at 24755) by debbugs.gnu.org; 26 Oct 2016 20:27:12 +0000 Received: from localhost ([127.0.0.1]:57936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzUn2-0007bg-7p for submit@debbugs.gnu.org; Wed, 26 Oct 2016 16:27:12 -0400 Received: from alt44.smtp-out.videotron.ca ([23.233.128.31]:45036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzUn0-0007bT-V9 for 24755@debbugs.gnu.org; Wed, 26 Oct 2016 16:27:11 -0400 Received: from ceviche.home ([24.202.159.173]) by Videotron with SMTP id zUmtbVulQ6cTKzUmubSje9; Wed, 26 Oct 2016 16:27:05 -0400 X-Authority-Analysis: v=2.1 cv=TfA2zUkh c=1 sm=1 tr=0 a=drQ1+/MlVPSpi4JwKQuNfg==:117 a=drQ1+/MlVPSpi4JwKQuNfg==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=CH0kA5CcgfcA:10 a=7bjCbETlUmRN6IuCfiUA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 Received: by ceviche.home (Postfix, from userid 20848) id 5FB1266239; Wed, 26 Oct 2016 16:27:03 -0400 (EDT) From: Stefan Monnier To: Mats Palmgren Subject: Re: bug#24755: 25.1; Selection continues with no mouse button pressed Message-ID: References: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> <83inskrbz5.fsf@gnu.org> <83oa26ubu8.fsf@gnu.org> <00613eef-12d2-3272-4e36-da5cd4a1bc21@gmail.com> Date: Wed, 26 Oct 2016 16:27:03 -0400 In-Reply-To: <00613eef-12d2-3272-4e36-da5cd4a1bc21@gmail.com> (Mats Palmgren's message of "Wed, 26 Oct 2016 22:22:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Envelope: MS4wfKY7NtbSC+gXsomvDDfI2j23nXbFcuXEoZyuOD05I88Vxx5lg+WGxbZAsuq8ryQMbxq7Mlfndb0aLkCcc2ZBPcC9ANEkcbRnvPTsuyTkirqNWRASmH9a 6NzzpTwqxNZBgUDR4R5U/nT2oJMicf6+n+4D76kAOF976TegQi5sfK7qnhZV8gi26fOmjYxRtGd/OY/UDXtx8hc0WRlrhA9j3PTYIH7u7sZqMsJszEN1nOfB AC8PrGY1kgUBo46faTLYXNgv1plrjMxRt4NG73Re7bw= X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 24755 Cc: 24755@debbugs.gnu.org, Eli Zaretskii 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.3 (/) > Fwiw, losing the selection in this situation isn't acceptable to me. > I'll certainly stay on emacs < 25 until this is fixed to behave as > it used to. Could you explain a bit more of the background for your use-case. E.g. how/why do you end up pressing `control` on the mouse-release? E.g. Is it only/always `control` or are there other modifiers involved sometimes? As for a workaround, you should be able to get back the old behavior for that specific case with (global-set-key [C-drag-mouse-1] 'mouse-set-region) Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 26 17:25:12 2016 Received: (at 24755) by debbugs.gnu.org; 26 Oct 2016 21:25:13 +0000 Received: from localhost ([127.0.0.1]:57949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzVhA-0000Rm-Ox for submit@debbugs.gnu.org; Wed, 26 Oct 2016 17:25:12 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:34316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzVh8-0000Ra-Kp for 24755@debbugs.gnu.org; Wed, 26 Oct 2016 17:25:11 -0400 Received: by mail-lf0-f54.google.com with SMTP id b81so15742521lfe.1 for <24755@debbugs.gnu.org>; Wed, 26 Oct 2016 14:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=uTGROLJ+6oQbIIyWpQSzrAFZqIeClmuPRm+Z299iZWw=; b=xTHz6OI4nuxuWym5pLdZFz3QUw+ThOB/wy3gXqsSMkfz/yS+Bx7nuCrPNOyv6rnuC+ T/0CcrEsbCGs9yiH4UYCWwGw/ppYkSn/wXaC/gNoNBM4UAAYDNLAA7fr8cevzJ0+isxh tRiG16+DIjcrSAeClffpMVWxwvwdEZEKoryVFE7wsnfAsJgz14Zln4NNJOe2bY8JsdNL 02nNzQtz1jkX0LtC6+SFx4Q831B3Ry6p5wd4nSNURBSI2roa1uXsF6KQ2zMeIrg2tJei etZXMZXRy1wypcmHNx+SX3wYLSZt5qfX8cWfyxz24jk2Hr8EB9yasbzQV3cyis0sN/ly 2LiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=uTGROLJ+6oQbIIyWpQSzrAFZqIeClmuPRm+Z299iZWw=; b=k7CdNUkbRyL2EIzTS5EdmL1PG7JCqKLkKEXgSdcP0VxK1jc4o/W1xO48odWbns5kmL mCPzCD5K6BpgHJ/TALbYW+jyCYBWDOdeED4kU5tJj5R6IbXWGEbd9ZzE02QMP6U0wWQ/ 07OTidyjUVbcVY7SoDskZrSJ+feeuvkfWIHMY25f3fLiPaxqaKF30IVodIiFk7Wdr8a/ TgaNwTHdXh/RhyXSQwqG8fMwZObw92D2VyP+UVtYCuuPHS9CpgQhjCf3iMBWERPC86w1 JgQVCwzNrraQzmdP0v7x1aOPlIUGyPA52TnaN2RPesMsDjOND44XM3K4WOdI+OBNYa+c kxog== X-Gm-Message-State: ABUngvfn+Z9FGFXlp+GlmeY0PhEAUbzz5M40XO88yvQX3tyHFfbqDHx1LqfSP9K1O+9TIg== X-Received: by 10.25.127.216 with SMTP id a207mr3242431lfd.62.1477517104585; Wed, 26 Oct 2016 14:25:04 -0700 (PDT) Received: from [192.168.88.2] (h-235-34.a149.priv.bahnhof.se. [85.24.235.34]) by smtp.gmail.com with ESMTPSA id h99sm701023lji.39.2016.10.26.14.25.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Oct 2016 14:25:03 -0700 (PDT) Subject: Re: bug#24755: 25.1; Selection continues with no mouse button pressed To: Stefan Monnier References: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> <83inskrbz5.fsf@gnu.org> <83oa26ubu8.fsf@gnu.org> <00613eef-12d2-3272-4e36-da5cd4a1bc21@gmail.com> From: Mats Palmgren Message-ID: <4c8fd84a-4d04-ca09-d033-c1cf1fdbf5db@gmail.com> Date: Wed, 26 Oct 2016 23:25:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Thunderbird/49.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24755 Cc: 24755@debbugs.gnu.org, Eli Zaretskii 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.7 (/) On 10/26/2016 10:27 PM, Stefan Monnier wrote: >> Fwiw, losing the selection in this situation isn't acceptable to me. >> I'll certainly stay on emacs < 25 until this is fixed to behave as >> it used to. > > Could you explain a bit more of the background for your use-case. > E.g. how/why do you end up pressing `control` on the mouse-release? Sure. While I'm drag-selecting the region I want, I'm unconsciously preparing for the operation I intend to do on that region, mostly C-w to delete it or C-c C-c to comment it out etc, so more often than not I've already pressed Ctrl before I've finished the selection. It's a convenient behavior to not have to time the Ctrl-press exactly, and it also saves me a fraction of a second to do what I intended. :-) > E.g. Is it only/always `control` or are there other modifiers > involved sometimes? Only Control as far as I'm aware. I'm on Linux though, so perhaps there are other modifiers that are frequently used on other platforms, e.g. OSX (Fn, Option, Cmd) that I'm unaware of. > As for a workaround, you should be able to get back the old behavior for > that specific case with > > (global-set-key [C-drag-mouse-1] 'mouse-set-region) Yes, that seems to work, thanks. /Mats From unknown Thu Aug 14 21:49:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 24 Nov 2016 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator