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 21:18:20 +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> <6bf229f4-c22f-c3c2-5158-5235f908de3c@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="239689"; 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 21:19:14 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 1iRioi-0010Ag-8P for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 21:19:12 +0100 Original-Received: from localhost ([::1]:37994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRiog-0003qI-EZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 15:19:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42264) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRioZ-0003q5-IP for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 15:19:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRioY-0004sI-IF for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 15:19:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRioY-0004s6-FT for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 15:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRioY-0001Mk-8l for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 15:19: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 20:19: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.15728987105204 (code B ref 38013); Mon, 04 Nov 2019 20:19:02 +0000 Original-Received: (at 38013) by debbugs.gnu.org; 4 Nov 2019 20:18:30 +0000 Original-Received: from localhost ([127.0.0.1]:37587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRio0-0001Lp-1P for submit@debbugs.gnu.org; Mon, 04 Nov 2019 15:18:28 -0500 Original-Received: from mail210c50.megamailservers.eu ([91.136.10.220]:56506 helo=mail194c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRinw-0001Le-Pi for 38013@debbugs.gnu.org; Mon, 04 Nov 2019 15:18:26 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1572898703; bh=G8e92e679lWBwY8BgeUUU7lbfInuoPY/eZQxI/u2cAk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=PWQdKzXpxipnw6lVOfMoNyu9ePqn07KqPCzXx3dy8PuMq2i+OrRlO7+qGtcLCT8JK kDRpDsH/0NmfOUvUSJq3QjD17si7DWVPzOhWlK38s7weOe+bwEcwLboOm7olLOJqeq rrDoMRodHWQeHwiqKwvZ6Lt8nHwTfnvMdYI6C3L0= 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 mail194c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id xA4KIKCq015276; Mon, 4 Nov 2019 20:18:21 +0000 In-Reply-To: <6bf229f4-c22f-c3c2-5158-5235f908de3c@gmx.at> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0211.5DC0878F.0007, 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=TbLoSiYh c=1 sm=1 tr=0 a=rXevXwunHxhYrmnhJinORQ==:117 a=rXevXwunHxhYrmnhJinORQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=OTf87VpxlgCW17UmtaMA:9 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:170961 Archived-At: 4 nov. 2019 kl. 19.27 skrev martin rudalics : > If you bind it to the control key you should at least be able to pop > up the buffer menu yourself if the up event occurs at the same > position as the down event. >=20 > But here I can simply do >=20 > (global-set-key [C-down-mouse-1] 'mouse-drag-region) > (global-set-key [C-drag-mouse-1] 'mouse-set-region) > (global-set-key [C-mouse-1] 'mouse-buffer-menu) >=20 > and get both, normal mouse dragging and the buffer menu. What more > would you need? The rectangle-mark code can perhaps be rewritten to work that way, but = doesn't it force the pop-up menu to be used with = click-release-select-click-release instead of the quicker = click-select-release?