From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17562: 24.4.50; REGRESSION: mouse double-click on `(` does not select whole Lisp sexp Date: Tue, 27 May 2014 01:08:30 -0400 Message-ID: References: <28b9c286-b99c-42b1-9768-d39a449a9855@default> <87tx8cdorb.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401167371 26550 80.91.229.3 (27 May 2014 05:09:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2014 05:09:31 +0000 (UTC) Cc: 17562-done@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 27 07:09:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wp9da-00086R-Gi for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 May 2014 07:09:22 +0200 Original-Received: from localhost ([::1]:59796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp9dZ-00075V-UI for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 May 2014 01:09:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp9dP-00075F-TR for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 01:09:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wp9dH-0000RI-GV for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 01:09:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp9dH-0000RE-DJ for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 01:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wp9dH-00045o-2S for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 01:09:03 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 May 2014 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17562 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 17562@debbugs.gnu.org, monnier@iro.umontreal.ca, drew.adams@oracle.com Original-Received: via spool by 17562-done@debbugs.gnu.org id=D17562.140116732015687 (code D ref 17562); Tue, 27 May 2014 05:09:02 +0000 Original-Received: (at 17562-done) by debbugs.gnu.org; 27 May 2014 05:08:40 +0000 Original-Received: from localhost ([127.0.0.1]:32884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wp9ct-00044x-Ic for submit@debbugs.gnu.org; Tue, 27 May 2014 01:08:39 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:34595) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wp9cr-00044X-0m for 17562-done@debbugs.gnu.org; Tue, 27 May 2014 01:08:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd/fU/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECK9GolMXjnoHhDgEqRmBaoFxgVshgS4 X-IPAS-Result: ArYGAIDvNVNLd/fU/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECK9GolMXjnoHhDgEqRmBaoFxgVshgS4 X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="64325850" Original-Received: from 75-119-247-212.dsl.teksavvy.com (HELO pastel.home) ([75.119.247.212]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 May 2014 01:08:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D12C16018D; Tue, 27 May 2014 01:08:30 -0400 (EDT) In-Reply-To: <87tx8cdorb.fsf@web.de> (Michael Heerdegen's message of "Tue, 27 May 2014 02:55:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89536 Archived-At: > In general, in current trunk, when window scrolling happens, point is > now always positioned in the line under the mouse, instead of after the > sexp. Seems like something happens similar to what is described in the > old code: > ;; Don't run the up-event handler if the window > ;; start changed in a redisplay after the > ;; mouse-set-point for the down-mouse event at > ;; the beginning of this function. When the > ;; window start has changed, the up-mouse event > ;; contains a different position due to the new > ;; window contents, and point is set again. Indeed, it's something along these lines, although the above code is not reached anyway in this kind of "double click on a paren" situation. The problem is that Emacs generates a drag event even though there's not been a drag per-se, and the end-posn of the drag is based on the "after scroll" display, whereas the user usually hasn't had the time to really see this display before releasing his mouse button. The old code used a hack to work around the problem, and I installed another hack that does something morally very similar, although it gets there in a fairly different way. In both the old and the new code you can still get the undesired behavior if you move your mouse slightly between the second down-mouse and the second up-mouse. Stefan