From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: [WIP PATCH] Adding more keybindings to rectangle-mark-mode-map Date: Sat, 1 May 2021 19:26:30 +0200 Message-ID: <20210501172630.rly7cwmhk4z65x2s@Ergus> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17264"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 01 19:29:03 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lctQN-0004Os-41 for ged-emacs-devel@m.gmane-mx.org; Sat, 01 May 2021 19:29:03 +0200 Original-Received: from localhost ([::1]:52294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lctQM-0006sv-5l for ged-emacs-devel@m.gmane-mx.org; Sat, 01 May 2021 13:29:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lctOQ-0005xu-4R for emacs-devel@gnu.org; Sat, 01 May 2021 13:27:02 -0400 Original-Received: from sonic307-2.consmr.mail.bf2.yahoo.com ([74.6.134.41]:34890) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lctOJ-0007Iu-UN for emacs-devel@gnu.org; Sat, 01 May 2021 13:27:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1619890012; bh=RdKXypjSTMJ2kcT/Oa3rc9JnBLgYHQB4+UYfe56Idy4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=TswrmVXKnbpvVihk5cEkkcxYIejudhQQ2fSSmYpUYfUgalRfUIf/A3/dS+RUAaJJN9yQFbxIuOgFZ/vTf+ekI5f0ToCHuBH8J7OJQ97X9jyKop2ZST4BLYE1xzpFLdUUVmPjIK72CgPT++CcG5OaCaAtC+GRFL9x4wrvujFqactpdat5lmZK4V9MhBPzv/O6WLHS0epDD/Tr3NZhjSrSgXKABqIZP5C4pUrXlZQBKD7RoruAIlxTUNTzlu7TzzQ16LKa9B0VGQqO/2ttI89v6+MEZFiL7nJUnMF9lsLtUV81dXevTENuAP7rB7jyudJRpL9NhI397xXB2t4eaykSFQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1619890012; bh=mSnMEsix9CiKnKW+difVlCV4hz3qh1WMc0UgPKjcnaE=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Tdr5PLGJDNBE14Y00CzaJnd+I/knoVkYHrmPBhk/eep4Z+rCGf2Vn9Ys6qt78fOTCVEnBUFJelpZzPd23qdjFMX3XD9S4UP+CxEUnzh6TRrVd+CMy4CqQcg1HDpQccIjbJ/3b6534RI/h75Pz7tRMBW1yqO+L0wg6esDOHaPorr6l3LSHA986swvDKUEOhYobdio4zoiUZG3soXchq7/8LLiEfXw4b41J8UOSVF038yATTGNzd6nKQlwIfhZHs4HC1IhLqMRB8vlVKmRv5zakJ7O6kwSS7FrxOYZiuvm/HCEF+6gpL8BwOZVADdxIYuSk4vqRUQfVOeLCPO25qdgjQ== X-YMail-OSG: 9T5oZKEVM1k_CVQLCX3aABvzsoF0IGUjFKACCCbIQVI24DWhSihqvk0CwrEYmS4 ep6_ZR3YnpFB2c.P_La2QxRCyuhzMD3HntXH2xMbf0ERG_Pom2u9Sp3kS18Z1OGEsWTkZPxtbknJ rdGRXPlVG3HnarWma7Taf4PC3g2H3VsyufPh6jBFTFr6dCDy7m16a0f3L16O0ShpVaTNOGULuM4r 04VbYTxOQ8_tB.m8l6r7IbZoKNBW48KhOhTLRimOYjQM147h3_YHyJuUJidB8jfREY7d9pN8D_P_ lqC3U1viZCw6kfB.aogrZqqczl9y_jqu1Zab5yxLE4jpNXvSVRkrcZPW1LU0L06zTCJYYiyv.ejf qwcrXWlrkqqxS_uaSRJZjC1rErSNx36l7CdpXOBFjUdYNjXaqHwKfveRaCngJuejBb46kd7IvK3k 74VkJsG5kmORgZGQMn6uhr99jJH34qTIRlVu1iOfiQrWFmfQZ_GH1PXwMLEqAot7KdZFXQkphkFG s.hVclQbxd9zn9KTDuoomnfNfYVRlyh4LBT01ftb6UqY7wXNw9ts24eR21Klbvy3Y8t7Z5_iQ.gi CCRg5Ab680u3HiEVjRUFzDyHU07fWvrQ9UBSeyT9TMVLZyAC5eEF8syq6z73AEymh8O1AN85byRS qJ.pIV.0c0UTjcl14QETw_4pY3zYJEnsSg4hzZnFUCHxIB64CLunDXAtD3yFvrW2.G6bnLdO83oL IOMJzOSCYvYs9LbL8MdAKMq_SddYJ6qe1Dw7n52Gg3EEsguyopd3kZJBcvNGqb07RtvtJ4X.GgOf XeSxyw8rh_uNIEa0J98u81RwMnorzigZMGCY6jXZoU X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Sat, 1 May 2021 17:26:52 +0000 Original-Received: by kubenode522.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 34b92d268451a6c0eea33ba2d3bb3b90; Sat, 01 May 2021 17:26:48 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.18138 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/16) Received-SPF: pass client-ip=74.6.134.41; envelope-from=spacibba@aol.com; helo=sonic307-2.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268724 Archived-At: On Sat, May 01, 2021 at 09:02:51AM -0700, Jim Porter wrote: >> This said, I do think the way yanking rectangles works currently is not >> fully satisfactory, because it's not always clear/intuitive how where >> the rectangle will get inserted. So maybe we do need a special yank >> command active during `rectangle-mark-mode` which replaces the selected >> rectangle with the yanked one, or something like that. > >I agree. Once I tinkered with yanking rectangles a bit, it (mostly) >made sense to me, but instinctively, I wanted to select the rect to >yank into first. That works as you'd expect when the point is at the >beginning of the rect but not when it's at the end. I'm not sure what >I'd want to change though, since it works the same as yanking when you >have a non-rectangular region selected too. > Yes please. The rectangular selection copy and yanking es very confusing now. And it forces me to use the multi-cursor package too often and recommend it to my students. In spite of it is unstable and have breaks with undo and is incompatible with some commands. So a good improvement in the rectangular selection could partially replace some of the use cases we actually have for multi-cursor. >- Jim >