From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: [WIP PATCH] Adding more keybindings to rectangle-mark-mode-map Date: Sun, 2 May 2021 08:48:21 -0700 Message-ID: References: <83czu98vws.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1230"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 02 17:51:36 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 1ldENb-0000DO-Gr for ged-emacs-devel@m.gmane-mx.org; Sun, 02 May 2021 17:51:35 +0200 Original-Received: from localhost ([::1]:41222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldENa-0006MD-KO for ged-emacs-devel@m.gmane-mx.org; Sun, 02 May 2021 11:51:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldEKg-0004Xx-IJ for emacs-devel@gnu.org; Sun, 02 May 2021 11:48:34 -0400 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:33676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldEKe-0003rC-QE; Sun, 02 May 2021 11:48:34 -0400 Original-Received: by mail-pl1-x62c.google.com with SMTP id b21so1519740plz.0; Sun, 02 May 2021 08:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XozuCBpTIOyzzmzvOet/EeAtepDnjzKjMdnTzvO/tDA=; b=LXePy/py9kDnpIMFA5WOy/7CwF9eYGqKfQGDirnqCAsEySpXBdv9eLaGrVTDaLhvfP u2KCjDGvEgGrJ1BhxTexLoXcRTQcKmUyRP2cOcsqQmW6IgZtQWgj1r+66BIbSshfvpzY EN6s/6P8P9erqOcaXW6SatVEpx4AR5/TpFWOX9YWLGLguTKGRfdixkQrhzEeJFj/vKer 37RU3XJHZjtrNkpiV4WVBsDRPh7e169zH3TQqg33UgI+JGp9mtaPTAUHAD92tjRD1MoG Z988ywNslSo1SglhCWMxvVEQWqLPkBCFxxVTY4CHeEA+Xu2d5CX7O3PQ5dh0GL3Dtecs 0BcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XozuCBpTIOyzzmzvOet/EeAtepDnjzKjMdnTzvO/tDA=; b=AGc/8nTPI+YiXF69lTFkebNvZoaaviU+ugFc02fKp6dOfmL0Crv+arseCamcRiyE8h 2l/tr3suD24SRS/nG5pzqIeqQ5p2GwIWSchpNyZizOpU07vY75kpbLcu7ew1LL6Imwy0 TpTrZpki8jRIZ4he2yT95Hsl2U6RJn/d4ipKht9/jZPg/YtNU0ybIQwoxHdI7rEZVozw Tl2jZ/khc2KG/qT7JeThDVJU/Don0lpy38SUQDIYDkX62eRH90IR1SBQ/9RbFjRoBVqo yo0r2dXl9MAQnx64swgJgnTtrr2JnRyG78hv2Sb1So74xJq77VJLQfeWeIXfUIDzE/DF truQ== X-Gm-Message-State: AOAM533CKnv/EfApM30vebZKpEbs2TDjgpGyljtj8hKokpZsm0tTaC+o bRa0NL4UnBCcw/4uLVQ0xSOm1H3I+MCEAiKFm1kBUTIvcJc= X-Google-Smtp-Source: ABdhPJyjoXH2k9jkBI3kHnuI57UVhf5n6mWLyBnLhTeWjsfSdsUnyf94twSk6DpuM7wYlO7PivVaR8ZmAnBJrR0ovGM= X-Received: by 2002:a17:90a:2ec6:: with SMTP id h6mr7513252pjs.103.1619970510177; Sun, 02 May 2021 08:48:30 -0700 (PDT) In-Reply-To: <83czu98vws.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x62c.google.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, 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:268773 Archived-At: 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. 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'. Maybe that's not so simple, and there's a variable I'm not aware of that can alter its behavior to not delete the region (or some other problem). In any case, mapping Edit -> Clear to a command that knows how to delete a rectangular region might be helpful. On Sat, May 1, 2021 at 10:20 AM Stefan Monnier wrote: > Oh, no, you're right: it's not done in `delete-region` (which is > a fairly low-level function and hence not ideal to piggy-back such > high-level UI functionality), but in `backward-delete-char-untabify`. > Whether it kills or deletes (or just does the good old backspace) > depends on `delete-active-region`. - Jim