From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Issue with rectangle mouse selection Date: Thu, 28 Nov 2019 12:09:22 +0100 Message-ID: References: <20191128100030.u5v5fto3vudkadnn.ref@Ergus> <20191128100030.u5v5fto3vudkadnn@Ergus> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="258905"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emacs developers To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 28 12:13:53 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iaHk6-00158H-UV for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2019 12:13:51 +0100 Original-Received: from localhost ([::1]:47714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaHk4-0001Hv-QS for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2019 06:13:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54271) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaHjK-0001Dw-6v for emacs-devel@gnu.org; Thu, 28 Nov 2019 06:13:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaHfw-00074t-Iw for emacs-devel@gnu.org; Thu, 28 Nov 2019 06:09:34 -0500 Original-Received: from mail74c50.megamailservers.eu ([91.136.10.84]:36204 helo=mail92c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iaHfv-0006iP-Rh for emacs-devel@gnu.org; Thu, 28 Nov 2019 06:09:32 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1574939364; bh=9nTRKRrjk2TudB9nCuNvPv2Yc2R8Ey8JC81SZH1+XCc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=cykoWf9nvxaZEnKefCUnEY6LptIjSdZrqyFFkPxQ1wwBSIHs4g61OVcq8hOj4o8m4 tthj3US3y3v0LOXWo61irduQJKjO+M6i+jDDShji35KS7kLAyhiBvEIvIXEGVC7laT 27E5VT2pX5UIRRgq6J6kE+R/LN+4zR43J0KqwAwk= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail92c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id xASB9NC6026240; Thu, 28 Nov 2019 11:09:24 +0000 In-Reply-To: <20191128100030.u5v5fto3vudkadnn@Ergus> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0205.5DDFAAE4.0065, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=RJbN4Lq+ c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=3oc9M9_CAAAA:8 a=-4jCsTrYW7D_95Pbd6sA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=CjuIK1q_8ugA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 91.136.10.84 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242829 Archived-At: 28 nov. 2019 kl. 11.00 skrev Ergus : > Trying the just new added rectangular mouse selection first, I'll say: > this is a very nice feature, very very thanks for it Mattias. Thanks for trying it, and for reporting your findings! > 1) In tui interface the rectangle region is not highlighted during the > mouse movement, just when the mouse button is released. That's odd --- it seems to work with some terminals (after enabling = xterm-mouse-mode). Terminal.app and Gnome Terminal are fine, but Xterm exhibits the = behaviour you describe. I'll investigate. > 2) In gui the rectangle limit and the cursor position are in different > positions. This is more evident when using tabs indentation or = crossing > empty lines. That's a behaviour inherited from the cursor-based rectangle marking = (C-x SPC), which is the underlying mechanism. Ordinary linear region = selection actually works the same way: the region includes the starting = point but excludes the cursor position. The only difference is that with rectangular selection, the mouse tracks = the rectangle corner, not the cursor. This was done partly to get better = behaviour when selecting up to the right margin, and partly because it = felt visually more pleasing. It also makes it easier to select 0-column = wide rectangles, which are occasionally useful, whereas zero-sized = linear regions are not. However, because of how the our eye-hand coordination works, a small = offset matters very little in practice: the hand will automatically move = to set the desired selection from the immediate visual feedback without = the user consciously thinking about it. By the way, I'm still not quite happy with the standard binding = (C-M-mouse-1); it was a weak compromise. If we could dislodge the = squatters of the Meta, Control or Shift bindings, I'd much rather use = one of those modifiers.