From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#38013: [PATCH] Rectangular region selection with mouse Date: Mon, 4 Nov 2019 19:27:44 +0100 Message-ID: <6bf229f4-c22f-c3c2-5158-5235f908de3c@gmx.at> 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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="38755"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38013@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 04 19:29:52 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 1iRh6u-0009zh-Bp for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 19:29:52 +0100 Original-Received: from localhost ([::1]:36260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRh6s-0005Fk-SV for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 13:29:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43239) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRh5A-0004ik-66 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 13:28:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRh59-0002GW-7j for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 13:28:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56919) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRh59-0002GP-4X for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 13:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRh59-0004jx-0P for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 13:28:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2019 18:28: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.157289208118207 (code B ref 38013); Mon, 04 Nov 2019 18:28:02 +0000 Original-Received: (at 38013) by debbugs.gnu.org; 4 Nov 2019 18:28:01 +0000 Original-Received: from localhost ([127.0.0.1]:37506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRh57-0004ja-80 for submit@debbugs.gnu.org; Mon, 04 Nov 2019 13:28:01 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:38457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRh55-0004jO-K9 for 38013@debbugs.gnu.org; Mon, 04 Nov 2019 13:28:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1572892061; bh=9vow1fa0j8kxxVU1A8TSbCggO+JYSD2c6xfDsxQvEiU=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=fP1KDlvP1xHG4Pz3WoUOdyyZwvCLNw9726cWsJkvFeVUkFfH5WC0axDaE7mZs3Hkz gI8MQNziMAgRV5djxW52RJxANyBhWpYrWEIJnnIhEC+14Gw8qixL8DYmHNkLM0pFNs KGN3r9NQC/CCu9Zw9hht8HwPTon6cU5I0iyS1LoI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.36]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1Ycl-1iUi982FFz-0034Uf; Mon, 04 Nov 2019 19:27:41 +0100 In-Reply-To: Content-Language: de-AT X-Provags-ID: V03:K1:WuRYJf1/Uj0t1CaAGJf3PX9OmKdpkaFVg83WzN2zj/J07VqVVd0 y8y27fv/FDY1/uiUKmcrnX2PUw47bE6Lz7uwmb7NdODBLeLykxNvFLIJmWn5U3bTAf7YzjD 4sGxbOum2klefiY0RK6mZW1Cuq/2tJO7oMm8+KPHkNoS/aTkr6FcTsXC2BvQeoVqCLb8vlm Cr6DkWjDKGsKdU/43rS7Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:NjuHA/09lWk=:wlkqOBl+pb2H9H8qeB62VC J56ytkxgMa8UoyLavF3QCBoka81FchYNlgVMzifmKQeBqZPadHwL75PZBmepPYUYkamHXIvjQ aviMDhoP7YFL/gT+C3QaBMXSzZZkz0b5Cib7j/gNuhXRiCQSjmCcaIFAdkuLmbr95nQeVH9II WbX35C3U1Z10BAvnvfyzJuxbzAIupdbJAA+Sn77U+PvAm/7vJqIv3ACHS1DpHmtzPAZj/IS+f 3Q1M6T9M3a3kXCYZFgo+UvWFpmLt49CAvZtIF1YUPWGX6EqxGJ0kc+2ilbfhSNwjXBKCSHR/m 0WNX1L1RD07Sr6xnkPy7e3WzbYxpmmBLG7ubQdhYoLux2cmV7Qe2SgoWi0i+fXvseRnK7DV9g +qHsQLmoJRftX7+au7DXA61GSCOkrtc6L4c33LYo3HZVItax909dCJ/Uil6c5+7UdhCr1Tf20 LkEO6oaRdi93Dw9r8RXDmgT0drUMfPJakSXP/W1X0JvywhpxFhwXm6bjKP7ZhT2lUZxHpvVVJ zDLPD9A0wgE97ZaRmWEAOagSKEZp+iH+RkEgwVIvsvb68lph+n16H5axWLvnNJK8+lLUAjm57 EDYdji3tcfUEaRrcVc0V4ZPlnSqFQ4paWYeO6CtPfiRJjvFhOXeUqZhOjEk/hhCrbPRGIKb5i 9jMtphQjOlmDLqc9L+ajvQ8Qs3gmcpyzvmWLsb4Q2Sve0IPe1yHABWB7zYpomIT+oDin3tZTP hiX8Jx0sMSaEJaMW6baGpOmz0ai6AOifJksob2Ax9ewzCzKG1mmRResY/RsEU+4KqnyfZHYp 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:170952 Archived-At: > 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. 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. But here I can simply do (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) and get both, normal mouse dragging and the buffer menu. What more would you need? martin