From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38013: [PATCH] Rectangular region selection with mouse Date: Fri, 01 Nov 2019 15:17:07 +0200 Message-ID: <83y2wzlorw.fsf@gnu.org> References: <83lft0m3ug.fsf@gnu.org> <3541E0E8-9E33-4FBD-B0D9-DFF77C241F6F@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207793"; 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 Fri Nov 01 14:18:13 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 1iQWoe-000rvN-UB for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 14:18:13 +0100 Original-Received: from localhost ([::1]:39172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQWod-0003RT-LG for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 09:18:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50875) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQWoW-0003P7-BP for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 09:18:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQWoU-0000j3-J1 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 09:18:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQWoU-0000iL-6T for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 09:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQWoT-0006Zz-Vq for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 09:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 13:18: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.157261423324937 (code B ref 38013); Fri, 01 Nov 2019 13:18:01 +0000 Original-Received: (at 38013) by debbugs.gnu.org; 1 Nov 2019 13:17:13 +0000 Original-Received: from localhost ([127.0.0.1]:55185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQWnh-0006Tv-0W for submit@debbugs.gnu.org; Fri, 01 Nov 2019 09:17:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQWnf-0006O9-Rz for 38013@debbugs.gnu.org; Fri, 01 Nov 2019 09:17:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQWnZ-0000Au-BD; Fri, 01 Nov 2019 09:17:05 -0400 Original-Received: from [176.228.60.248] (port=2217 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQWnY-0006GK-OP; Fri, 01 Nov 2019 09:17:05 -0400 In-reply-to: <3541E0E8-9E33-4FBD-B0D9-DFF77C241F6F@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Fri, 1 Nov 2019 12:53:44 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:170605 Archived-At: > From: Mattias EngdegÄrd > Date: Fri, 1 Nov 2019 12:53:44 +0100 > Cc: 38013@debbugs.gnu.org > > With the default settings, click and drag (mouse button 1) with meta held to mark a rectangular region. Thanks, I will try. > 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 And yet cua-rect.el defined a command to enter this mode. I don't really buy the "on a whim" argument; I think the user always knows in advance whether the next selection will or won't be rectangular. So I still think a minor mode is the best solution, if something like C-M-mouse-1 is not portable enough.