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:30:36 +0200 Message-ID: <83v9s3lo5f.fsf@gnu.org> References: <83lft0m3ug.fsf@gnu.org> <3541E0E8-9E33-4FBD-B0D9-DFF77C241F6F@acm.org> <83y2wzlorw.fsf@gnu.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="266691"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38013@debbugs.gnu.org To: mattiase@acm.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 14:31:26 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 1iQX1S-00170a-2Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 14:31:26 +0100 Original-Received: from localhost ([::1]:39286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQX1F-0001zJ-FI for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 09:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53586) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQX15-0001wb-L2 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 09:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQX14-0003ma-MO for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 09:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQX14-0003mE-Ir for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 09:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQX14-0007sq-Bv for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 09:31: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:31: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.157261504329145 (code B ref 38013); Fri, 01 Nov 2019 13:31:02 +0000 Original-Received: (at 38013) by debbugs.gnu.org; 1 Nov 2019 13:30:43 +0000 Original-Received: from localhost ([127.0.0.1]:55209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQX0l-0007Za-7E for submit@debbugs.gnu.org; Fri, 01 Nov 2019 09:30:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQX0h-0007Qr-S8 for 38013@debbugs.gnu.org; Fri, 01 Nov 2019 09:30:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQX0c-00039W-IO; Fri, 01 Nov 2019 09:30:34 -0400 Original-Received: from [176.228.60.248] (port=3040 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQX0b-0007HP-UN; Fri, 01 Nov 2019 09:30:34 -0400 In-reply-to: <83y2wzlorw.fsf@gnu.org> (message from Eli Zaretskii on Fri, 01 Nov 2019 15:17:07 +0200) 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:170609 Archived-At: > Date: Fri, 01 Nov 2019 15:17:07 +0200 > From: Eli Zaretskii > Cc: 38013@debbugs.gnu.org > > > 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. Tried it. I see 2 problems: . an annoying 1-pixel horizontal movement when I just press M-mouse-1, but don't move it; this doesn't happen in a "normal" selection by dragging mouse-1 . problems when dragging the mouse across a TAB -- you cannot select just a "part" of the TAB's 8-column white space (see cua-rect.el for how this can be done better) In addition, it looks like making the rectangular selection is very error-prone: about 40% of the attempts I get a non-rectangular selection instead, and sometimes the selection "jumps" to the other side, i.e. I drag the mouse to the right, but get the text from the mouse to the _left_ selected, and the selection extends to the BOB. Thanks.