From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#38013: [PATCH] Rectangular region selection with mouse Date: Fri, 1 Nov 2019 12:53:44 +0100 Message-ID: <3541E0E8-9E33-4FBD-B0D9-DFF77C241F6F@acm.org> References: <83lft0m3ug.fsf@gnu.org> 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="123768"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38013@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 12:54:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1iQVVL-000VqV-9K for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 12:54:11 +0100 Original-Received: from localhost ([::1]:37958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQVVJ-0002zN-Pz for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 07:54:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58666) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQVVD-0002zE-AQ for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 07:54:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQVVC-0001qJ-7Z for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 07:54:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46289) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQVVB-0001oH-Rl for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 07:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQVVB-0006iR-OO for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 07:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 11:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 38013-submit@debbugs.gnu.org id=B38013.157260923625803 (code B ref 38013); Fri, 01 Nov 2019 11:54:01 +0000 Original-Received: (at 38013) by debbugs.gnu.org; 1 Nov 2019 11:53:56 +0000 Original-Received: from localhost ([127.0.0.1]:55110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQVV6-0006i7-BO for submit@debbugs.gnu.org; Fri, 01 Nov 2019 07:53:56 -0400 Original-Received: from mail1430c50.megamailservers.eu ([91.136.14.30]:41360 helo=mail118c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQVV4-0006hq-09 for 38013@debbugs.gnu.org; Fri, 01 Nov 2019 07:53:55 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1572609227; bh=Qs2ED783lnU8MgYVjGpEbt6jUDdHVo9Sr4I9aG7VTm8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Z3yEyGXF5wOo6C7BrjG0SJjhh05eRCAcdOf9XAEYlVEbJRpBAaOJDyzJsRnc0nmr+ mdFCv4+JvfVVZvI2mmhQH4DkPPj2qbtwZry6ubO+Fvp+7/FhEvKuSGVXXwKn+3ACh0 oZ9kgy+dwfTt1Gwrlr7BcMEOiBe4G3exbiyXbvL4= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail118c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id xA1Bri0T010739; Fri, 1 Nov 2019 11:53:46 +0000 In-Reply-To: <83lft0m3ug.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B020D.5DBC1CCB.0010, 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=DYBpVclW c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=mDV3o1hIAAAA:8 a=pOugm2AvIh42jSsi9LsA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=CjuIK1q_8ugA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086:22 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: 209.51.188.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:170598 Archived-At: 1 nov. 2019 kl. 08.51 skrev Eli Zaretskii : > Could you please tell how to try and test this feature? The patch > comes without any documentation, so it's hard to understand quickly > what to do to see this in action. With the default settings, click and drag (mouse button 1) with meta = held to mark a rectangular region. Sorry about the lack of documentation; it will be written once we agree = on the design. > I'd prefer not to step on another feature, if possible. How about > defining a minor mode, and then using the usual mouse selection > gestures instead? That would be more natural, IMO, and will not > require users to give up another feature. Very much agree that other features should be left alone, but in this = case there seemed to be no really good unused binding. A minor mode is less ideal: rectangular selection is something the user = wants to be able to do on a whim, without having to plan ahead by = activating a minor mode. It is also good to follow standard practice in = other editors and terminal emulators Competing mouse bindings are: Meta: secondary selection Shift: mouse-appearance-menu (mouse-save-then-kill for NS) Control: mouse-buffer-menu The secondary selection appeared weaker than the rest, in the sense that = repurposing its binding would annoy fewer users than the alternatives. = (Annoyed users can still regain the old behaviour by customisation.) Other possibilities: A. Unbind mouse-appearance-menu, mouse-save-then-kill or = mouse-buffer-menu instead. The trade-offs are similar. B. Combined modifiers (Shift-Meta etc). Less ergonomic; there may be = platform restrictions. C. Use a different mouse button. Diverges from other platforms; messy on = Macs. D. Less common modifiers (Super, Hyper). Many don't have them. E. Follow the platform conventions. Not the Emacs tradition, and makes = for more binding clashes. F. Leaving rectangular selection unbound by default. This is tantamount = to stating that it is less useful. Is it?