From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23478: 25.0.93; Mouse region selection asymmetry Date: Sun, 08 May 2016 21:54:17 +0300 Message-ID: <8360uoe5ye.fsf@gnu.org> References: <878tzky2oe.fsf@gmx.net> <83eg9cecy2.fsf@gnu.org> <87wpn4wgev.fsf@gmx.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1462733742 867 80.91.229.3 (8 May 2016 18:55:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 May 2016 18:55:42 +0000 (UTC) Cc: 23478@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 08 20:55:31 2016 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 1azTrE-0008MJ-ST for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 May 2016 20:55:13 +0200 Original-Received: from localhost ([::1]:37760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azTrD-0000rK-Fs for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 May 2016 14:55:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azTr9-0000l9-55 for bug-gnu-emacs@gnu.org; Sun, 08 May 2016 14:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azTr4-0005yV-OO for bug-gnu-emacs@gnu.org; Sun, 08 May 2016 14:55:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azTr4-0005yR-M1 for bug-gnu-emacs@gnu.org; Sun, 08 May 2016 14:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1azTr4-00079v-GC for bug-gnu-emacs@gnu.org; Sun, 08 May 2016 14:55: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: Sun, 08 May 2016 18:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23478 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23478-submit@debbugs.gnu.org id=B23478.146273366827471 (code B ref 23478); Sun, 08 May 2016 18:55:02 +0000 Original-Received: (at 23478) by debbugs.gnu.org; 8 May 2016 18:54:28 +0000 Original-Received: from localhost ([127.0.0.1]:43460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azTqW-000791-GW for submit@debbugs.gnu.org; Sun, 08 May 2016 14:54:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azTqV-00078p-EL for 23478@debbugs.gnu.org; Sun, 08 May 2016 14:54:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azTqM-0005qa-Sy for 23478@debbugs.gnu.org; Sun, 08 May 2016 14:54:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azTqM-0005pn-PT; Sun, 08 May 2016 14:54:18 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3276 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1azTqK-0006FK-Ji; Sun, 08 May 2016 14:54:17 -0400 In-reply-to: <87wpn4wgev.fsf@gmx.net> (message from Stephen Berman on Sun, 08 May 2016 20:31:04 +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:117992 Archived-At: > From: Stephen Berman > Cc: 23478@debbugs.gnu.org > Date: Sun, 08 May 2016 20:31:04 +0200 > > > I don't think calling 'recenter' is TRT. First, the fact that you see > > the display recentering after item 3 in your recipe is only the > > default behavior; if you set scroll-conservatively to 101 before > > repeating your recipe, you will see that Emacs instead scrolls the > > display just one line, i.e. the minimum amount required to bring point > > back into view. Users that set scroll-conservatively like that will > > lynch us if we recenter display in this situation. > > Good point, I think I had that vaguely in mind when I expressed my > doubts about `recenter', but couldn't remember just what needed to be > taken account of. I did try an alternative to `recenter', using > `goto-char' instead, which changes point and hence induces recentering > by redisplay, but it also loses the region highlighting. I tried (with > several variants involving redisplay-highlight-region-function and > redisplay--update-region-highlight) but failed to figure out how to keep > the highlighting, but if that's a better way to handle this, maybe > someone more familiar with the region highlighting code will be able to > do that. > > > Bottom line, I don't think we should behave like that by default. I > > think this could be an optional feature, but it must obey > > scroll-conservatively (and maybe also other related variables). > > Definitely. Thanks for the feedback. How about momentarily exchanging mark and point, then calling sit-for for some small time interval, then exchanging back? Shouldn't this do what you want, or at least come close?