From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [WIP PATCH] Adding more keybindings to rectangle-mark-mode-map Date: Sun, 02 May 2021 19:09:00 +0300 Message-ID: <83lf8x6rtv.fsf@gnu.org> References: <83czu98vws.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5184"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 02 18:11:06 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 1ldEgU-0001H9-Kz for ged-emacs-devel@m.gmane-mx.org; Sun, 02 May 2021 18:11:06 +0200 Original-Received: from localhost ([::1]:60144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldEgT-0007CM-KE for ged-emacs-devel@m.gmane-mx.org; Sun, 02 May 2021 12:11:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldEel-0005vw-JX for emacs-devel@gnu.org; Sun, 02 May 2021 12:09:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33958) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldEek-0004BH-I0; Sun, 02 May 2021 12:09:18 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3712 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ldEej-0002Qc-Tq; Sun, 02 May 2021 12:09:18 -0400 In-Reply-To: (message from Jim Porter on Sun, 2 May 2021 08:48:21 -0700) 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:268774 Archived-At: > From: Jim Porter > Date: Sun, 2 May 2021 08:48:21 -0700 > Cc: Stefan Monnier , emacs-devel@gnu.org > > On Sat, May 1, 2021 at 11:58 PM Eli Zaretskii wrote: > > > From: Jim Porter > > > Perhaps Edit -> Clear should be bound to `backward-delete-char-untabify'? > > > > ??? The latter deletes a single character, whereas delete-region > > deletes many characters. How can we replace delete-region by > > backward-delete-char-untabify? > > Based on what Stefan said (see below), if the region (regular or > rectangular) is active, `backward-delete-char-untabify' deletes the > *region* instead of a single character. Yes. > I interpreted that to mean that, if Edit -> Clear is only enabled > when there's an active region/rect, `backward-delete-char-untabify' > is equivalent to a hypothetical `delete-rect-or-region'. But Edit->Clear is enabled even when the region is not active, like if you turn off transient-mark-mode.