From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#46469: 27.1; `isearch-del-char' should move point further back Date: Sun, 14 Feb 2021 19:45:37 +0200 Organization: LINKOV.NET Message-ID: <87sg5yekf6.fsf@mail.linkov.net> References: <87zh09xggr.fsf@gmail.com> <87eehjstt9.fsf@mail.linkov.net> <87a6s7nngp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13560"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 46469@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 18:54:39 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lBLbT-0003QK-9I for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 18:54:39 +0100 Original-Received: from localhost ([::1]:57344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBLbS-00033E-9E for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 12:54:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBLas-0002bJ-O3 for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 12:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBLas-0003Ml-Ew for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 12:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBLas-0000Dc-Cf for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 12:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 17:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46469 X-GNU-PR-Package: emacs Original-Received: via spool by 46469-submit@debbugs.gnu.org id=B46469.1613325216790 (code B ref 46469); Sun, 14 Feb 2021 17:54:02 +0000 Original-Received: (at 46469) by debbugs.gnu.org; 14 Feb 2021 17:53:36 +0000 Original-Received: from localhost ([127.0.0.1]:36647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBLaS-0000Cg-Ip for submit@debbugs.gnu.org; Sun, 14 Feb 2021 12:53:36 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:53035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBLaR-0000CT-2p for 46469@debbugs.gnu.org; Sun, 14 Feb 2021 12:53:35 -0500 Original-Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 6E5C2100007; Sun, 14 Feb 2021 17:53:26 +0000 (UTC) In-Reply-To: <87a6s7nngp.fsf@gmail.com> (Augusto Stoffel's message of "Sun, 14 Feb 2021 08:00:06 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200022 Archived-At: >> Anyway isearch-fallback in your patch does nothing. Maybe you intended >> to use isearch-pop-state, but this what isearch-delete-char already does. > > Please rest assured that the patch works, or at least works in all test > cases I could come up with. It implements the behavior I described in > detail in my third message in this thread. > > Put in another way, the patch makes ‘C-s y DEL x’ pretty much equivalent > to ‘C-s y☺\|x’, where DEL stands for `isearch-del-char' and ☺ stands for > an unmatchable regexp. I tried again, but your patch still doesn't work. With (progn (define-key isearch-mode-map (kbd "DEL") 'isearch-del-char) (execute-kbd-macro [?\C-s ?y backspace ?x ?1])) x1yx2 It signals the error "Keyboard macro terminated by a command ringing the bell".