From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#23478: 25.0.93; Mouse region selection asymmetry Date: Mon, 04 Jul 2016 10:45:43 +0200 Message-ID: <87wpl17pvs.fsf@gmx.net> References: <878tzky2oe.fsf@gmx.net> <83eg9cecy2.fsf@gnu.org> <87wpn4wgev.fsf@gmx.net> <8360uoe5ye.fsf@gnu.org> <87shxswd5s.fsf@gmx.net> <834ma8e3ll.fsf@gnu.org> <871t3bhbpz.fsf@users.sourceforge.net> <87poqun63w.fsf@gmx.net> <83furqratc.fsf@gnu.org> <87h9c6mkb0.fsf@gmx.net> <83vb0mp1ok.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467622485 25154 80.91.229.3 (4 Jul 2016 08:54:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2016 08:54:45 +0000 (UTC) Cc: 23478@debbugs.gnu.org, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 10:54:29 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 1bJzX8-0008Fd-Vz for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2016 10:47:15 +0200 Original-Received: from localhost ([::1]:45958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJzX8-0004LY-1Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2016 04:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJzX1-0004K5-8T for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 04:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJzWw-0002L1-A7 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 04:47:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJzWw-0002Kw-6o for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 04:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bJzWv-0006j9-Sh for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 04:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2016 08:47:01 +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: patch Original-Received: via spool by 23478-submit@debbugs.gnu.org id=B23478.146762196925796 (code B ref 23478); Mon, 04 Jul 2016 08:47:01 +0000 Original-Received: (at 23478) by debbugs.gnu.org; 4 Jul 2016 08:46:09 +0000 Original-Received: from localhost ([127.0.0.1]:36547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJzW5-0006i0-4V for submit@debbugs.gnu.org; Mon, 04 Jul 2016 04:46:09 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:58195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJzW3-0006hW-GK for 23478@debbugs.gnu.org; Mon, 04 Jul 2016 04:46:07 -0400 Original-Received: from rosalinde ([89.245.65.175]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Lat5o-1biIlP2mWu-00kPUf; Mon, 04 Jul 2016 10:45:47 +0200 In-Reply-To: <83vb0mp1ok.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 04 Jul 2016 05:38:51 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:KLdf/DjFfpFdkPBuZtgXrovCrnpV398HKNfzD3hhE5AC7qX6P51 yD50dLQoxgowNDpY+otEuXp0sdeZ0LGuMzyvK7tJqSMr8BIgf6BeQ+5dSbIZcwxU05J2PDn pR4805qsCn6IAufxA1fL7VcfH3iiNLd2Xh4CrEg+InQiU/AYA5J7YpAARhbbnjhdyl/KsrN RPtcanEfcG8UyYkL7AyGA== X-UI-Out-Filterresults: notjunk:1;V01:K0:oJiLzvxsa00=:c6x77yVWB9zkw3nLUQsWIP 2vy+Hba3QRkFArABifUgrGnV6j/U4WCV265q3d+GkzVuK1Y/pQofDZul9AJu8zYFA60ooz62T S+Xag9ZaRUObSt/KzemFchQgCkTkyhdYqxbfuydBN0vw3o+gDBem3WCbzYouQcZPmbkItXlkw MAtrkksQUFE/9Xel/0FMjKkX2LFmnU8M5JqjAbJ8pPyeQb7eJPXA/R6NhKOtvh0THb+CY58WR UsKRI7UGZnNzB1uSKzAsD8zAm+nlWPUZix82SQxGYTdv2v+nkHzpalGa+3vCDCmBZeIxVcriQ /SlwoXihJwuwgwAV/Dy0YQo7868nBLub3KJ2udfA9nD2MaPRIm+P0nmheLmNIpAlAGZh8mtfH 5wdmOGdp+OHrATZ8c4Jwnh6owrMlRI2gazV3u22Y25BzOatfvHcplHzjujsQxVxbZMhdi3N6e mKsTg1ipYzIxRHfB9df2BILQRsFgAZ+zgFGjIhV9omjt+romwuiSPaHGuaIMDjs771qK2AdrT rrs8ynMHMbXqWfyxXobRJu2kUuwC/u0UqiUuUuCfZhIb8o9Y+wSTeYG5S8mRIfO73jjX4BMvU ENPhOcMmAvF3imDzKR4MXLV8qmE+B1Kl2p/tdgMEWslWH4hXhhMhc745pdLVO4TVpckvxUzEc 8z5toF2S/f5myplgZ7+9Edf9dmZDDGBlpAEmuakWvAMvJfqFRIGCQM4w8fqgD+I5cnQllDeja ggdfCbEFjuCH1EV7LAiSCHsJ8pMUZz1FPfNYibrr8o9onT8XsqLEfvlUDvHBx5mrIM0kBQC+ 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:120389 Archived-At: On Mon, 04 Jul 2016 05:38:51 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: npostavs@users.sourceforge.net, 23478@debbugs.gnu.org >> Date: Mon, 04 Jul 2016 00:24:51 +0200 >> >> > I think backward-incompatible behavior should almost always be opt-in, >> > unless we have no choice. >> >> Opting in does, however, have the problem of discoverability (a NEWS >> entry notwithstanding). > > Since this is age-old behavior that no one complained about until now, > we can assume most users won't need it. If by "it" you mean the new behavior, then I agree nobody needs it, in the sense that it doesn't provide any functionality you can't get another way (e.g. by selecting a region by means of key combinations by dragging the mouse instead of by double-clicking). Nevertheless, I've always been slightly annoyed when I've encountered the issue, just never enough to try and do anything about it till now. >> I think opting in is best in cases where it's >> likely that some people may prefer (or some code may depend on) the >> existing behavior, or where the new behavior may bring a disadvantage in >> some case. But I don't think any of that is likely in this case >> (indeed, I really think the existing behavior is a misfeature). Your >> concern about the interaction with scroll-conservatively applied to my >> initial patch, but you yourself suggested a better alternative that >> allays this concern. Given that, I ask again, and not rhetorically, do >> you see a strong downside to having the new behavior be the default? > > Let's make one step back and describe the exact change in behavior > with the last patch, OK? Maybe some of us (e.g., me) don't really > understand what is the change. It simply makes selecting a region by double-clicking with the mouse more uniform; as I wrote in my OP, the current behavior is this: When you select a region by double-clicking with mouse-1 and the end of the region is below the last visible line of the window, Emacs recenters the display, making the entire selected region visible (unless it's larger than half the window's height). But when you select a region by double-clicking with mouse-1 and the beginning of the region is above the first visible line of the window, Emacs does not recenter the display, so the entire selected region is not visible. With the patch the behavior is now simply this: When you select a region by double-clicking with mouse-1, Emacs recenters the display, making the entire selected region visible (unless it's larger than half the window's height). To me (and I think Noam agrees), this is the behavior I would expect, while the current behavior is less user-friendly; I can't think of a reason why anyone would dislike the new behavior or prefer the current behavior, but maybe someone can provide a use case. Steve Berman