From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [WIP PATCH] Adding more keybindings to rectangle-mark-mode-map Date: Sun, 02 May 2021 14:07:44 -0400 Message-ID: References: <83czu98vws.fsf@gnu.org> <83lf8x6rtv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29175"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , 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 20:08:51 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 1ldGWR-0007Uk-Re for ged-emacs-devel@m.gmane-mx.org; Sun, 02 May 2021 20:08:51 +0200 Original-Received: from localhost ([::1]:57972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldGWQ-0008L7-Sr for ged-emacs-devel@m.gmane-mx.org; Sun, 02 May 2021 14:08:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldGVW-0007ub-6k for emacs-devel@gnu.org; Sun, 02 May 2021 14:07:54 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldGVQ-0000lN-Bj; Sun, 02 May 2021 14:07:53 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 463F71001F9; Sun, 2 May 2021 14:07:47 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EC48B1000C4; Sun, 2 May 2021 14:07:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1619978865; bh=C8qpaBF8vxDh4qDug1fbYLtdpX7zoG7yjCJhRmRIe58=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=KhrIIXPgD0hmPol9QHN3TZH9xOzGre4ux+kSAXqHpC/ELxX8/kNMYDb32iUPUNtkv ja/k/c9rN5Hout4ndVT5gML6JXqn9gkBAA8QULDnfi3en5Xj8WWoFcikcJeux6bhfb 5oRXX3UA6XyfXo6O0x+dDXEcJTw4Rj31P7+je8MBy//W12RUclMbXSLfh0r/xn/OnU Vn/8PC+YnxC+zoXR/MkBL+0j5Hbz62J2tkX3HgpfuxDjQl0I/HPBqtfwtGMzM3UbWd 1oKN75aAFNnuPOJ0zmsoFDvwD4SWgxfG+vaPBvj2lDPoQGv/72AG2lmbZ/zkbDjtKA gWU543+BqIrOw== Original-Received: from alfajor (unknown [108.161.125.61]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A14A11201B6; Sun, 2 May 2021 14:07:45 -0400 (EDT) In-Reply-To: (Jim Porter's message of "Sun, 2 May 2021 09:36:14 -0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:268778 Archived-At: Jim Porter [2021-05-02 09:36:14] wrote: > On Sun, May 2, 2021 at 9:09 AM Eli Zaretskii wrote: >> > From: Jim Porter >> > 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. > > Ah. In that case, a new function might be safer. Indeed, we need a new function here. It should be a small matter of moving the code from `backward-delete-char-untabify' into a separate function. Stefan