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: Mon, 4 Nov 2019 12:33:36 +0100 Message-ID: References: <83lft0m3ug.fsf@gnu.org> <3541E0E8-9E33-4FBD-B0D9-DFF77C241F6F@acm.org> <83y2wzlorw.fsf@gnu.org> <83v9s3lo5f.fsf@gnu.org> <75EC4FBC-F636-4D75-BAC4-982D85188794@acm.org> <9b9222ad-ead7-d0a0-0602-780d0680f070@gmx.at> 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="102838"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38013@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 04 12:34: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 1iRacd-000QaG-Hb for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 12:34:11 +0100 Original-Received: from localhost ([::1]:59772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRacb-0001fu-Rv for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 06:34:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33952) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRacV-0001fZ-NB for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 06:34:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRacU-0007Rz-KW for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 06:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55347) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRacU-0007Rr-I5 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 06:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRacU-0006A0-Dc for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 06:34:02 -0500 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: Mon, 04 Nov 2019 11:34:02 +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.157286722423650 (code B ref 38013); Mon, 04 Nov 2019 11:34:02 +0000 Original-Received: (at 38013) by debbugs.gnu.org; 4 Nov 2019 11:33:44 +0000 Original-Received: from localhost ([127.0.0.1]:35935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRacC-00069K-3e for submit@debbugs.gnu.org; Mon, 04 Nov 2019 06:33:44 -0500 Original-Received: from mail221c50.megamailservers.eu ([91.136.10.231]:60666 helo=mail33c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRac9-00069A-4y for 38013@debbugs.gnu.org; Mon, 04 Nov 2019 06:33:42 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1572867218; bh=clE+j6TsR1ev1yKKsXANuk81tR/CSMxH1OqA7ISDxkM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=MnalSrcKRm+yuyHl5gI0AnAEg3nZY5lcXXiW+9V1OxduG7n432KkRZEG6a8F6XJhy aGyDSlfGLg35F0Ln9AX1Yws2YJRVb6z3H12JwrYwzeb0VnG7V44/8Eq03hi3oTUlIZ 8qRHWN4fTR1CjjVffqnaTDTwIj/EXpjX0Z3xY9EQ= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.64] (c-ab48e655.032-75-73746f71.bbcust.telenor.se [85.230.72.171]) (authenticated bits=0) by mail33c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id xA4BXaqI014496; Mon, 4 Nov 2019 11:33:37 +0000 In-Reply-To: <9b9222ad-ead7-d0a0-0602-780d0680f070@gmx.at> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0205.5DC00C92.004E, 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=ccisUULM c=1 sm=1 tr=0 a=rXevXwunHxhYrmnhJinORQ==:117 a=rXevXwunHxhYrmnhJinORQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=z3M_6VYJbFPRu-Ef4CAA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=CjuIK1q_8ugA:10 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:170926 Archived-At: 4 nov. 2019 kl. 10.07 skrev martin rudalics : > I meant that the code for working with the secondary selection has > been set up in a quite meticulous way so I would never mess with it > (including the modifiers it uses). Not here to mess with it, but if the user prefers to free up the Meta = modifier for something else but still have access to the secondary = selection, it seems to be perfectly possible. The current patch applies = the modifier in a consistent way on all related bindings. Even better would be a unified binding interface that also takes care of = clashes in an automated way. (Drew, don't worry --- the bindings are placeholders so that people can = try out the selection mechanism. The default bindings are yet to be = determined.) > I usually shift-control with my pinkie alone so I would consider it > optimal and use it for many key combinations all the time. Geometry of hands and keyboards varies; I find single-key modifiers = easier (but not necessarily difficult) to use. However, shift-control could be a reasonable default value, if we dare = not alter anything else. Is there any reason to prefer one of = {shift-control, shift-meta, control-meta} to the rest? > These deserve their bindings though I would not pop up a menu from a > mouse-down event alone. What I am obviously assuming is that the > rectangular region selection code is based on mouse-dragging from one > corner of the rectangle to the opposite one, so a mouse-drag is easily > distinguishable from a click for a pop-up-menu. If this assumption is > wrong, my rebinding proposal is clearly void. Thanks for explaining. Unfortunately, region selection and menu pop-up = do not seem to be compatible in that way --- at least I didn't manage to = use the same modifier for both. Perhaps the events could be multiplexed = somehow, but it seems to be on the hacky side.