From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24755: 25.1; Selection continues with no mouse button pressed Date: Sat, 22 Oct 2016 12:04:30 +0300 Message-ID: <83inskrbz5.fsf@gnu.org> References: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477127120 16494 195.159.176.226 (22 Oct 2016 09:05:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2016 09:05:20 +0000 (UTC) Cc: 24755@debbugs.gnu.org To: Mats Palmgren , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 11:05:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxsEl-0002b3-3q for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 11:05:07 +0200 Original-Received: from localhost ([::1]:36075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxsEn-00039O-Dl for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2016 05:05:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxsEh-00039G-C3 for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 05:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxsEg-0003Mc-Gv for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 05:05:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bxsEg-0003MU-DS for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 05:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bxsEg-0002W4-6b for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2016 05:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2016 09:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24755 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24755-submit@debbugs.gnu.org id=B24755.14771270949639 (code B ref 24755); Sat, 22 Oct 2016 09:05:02 +0000 Original-Received: (at 24755) by debbugs.gnu.org; 22 Oct 2016 09:04:54 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 In-reply-to: <4bcf2767-b3e7-05dd-8ef5-80b8af60ca7a@gmail.com> (message from Mats Palmgren on Fri, 21 Oct 2016 16:56:00 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124813 Archived-At: > 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.