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: Thu, 29 Apr 2021 00:37:12 +0300 Organization: LINKOV.NET Message-ID: <871rau5br7.fsf@mail.linkov.net> References: <87zh09xggr.fsf@gmail.com> <87eehjstt9.fsf@mail.linkov.net> <87a6s7nngp.fsf@gmail.com> <87sg5yekf6.fsf@mail.linkov.net> <875z074lf3.fsf@gmail.com> <87r1iu6shx.fsf@mail.linkov.net> <871raurtyc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16998"; 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 Wed Apr 28 23:42:12 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 1lbrwh-0004Iv-0M for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 23:42:11 +0200 Original-Received: from localhost ([::1]:59642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbrwf-0002c7-LX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 17:42:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbrwY-0002bx-Ih for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 17:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbrwY-00024C-B8 for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 17:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbrwY-0003eK-8i for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 17:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Apr 2021 21:42: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.161964607813975 (code B ref 46469); Wed, 28 Apr 2021 21:42:02 +0000 Original-Received: (at 46469) by debbugs.gnu.org; 28 Apr 2021 21:41:18 +0000 Original-Received: from localhost ([127.0.0.1]:54276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbrvq-0003dL-35 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 17:41:18 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:44143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbrvo-0003d7-IZ for 46469@debbugs.gnu.org; Wed, 28 Apr 2021 17:41:17 -0400 Original-Received: from mail.gandi.net (m91-129-102-166.cust.tele2.ee [91.129.102.166]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id E30A8100005; Wed, 28 Apr 2021 21:41:08 +0000 (UTC) In-Reply-To: <871raurtyc.fsf@gmail.com> (Augusto Stoffel's message of "Wed, 28 Apr 2021 23:16:11 +0200") 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:205144 Archived-At: >> But this change will cause a problem to me. Usually, I type 'C-s' >> several times with a non-empty search string to arrive to Nth occurrence. >> Then to be able to continue the search with a shorter string, I remove >> some characters from the search string with 'C-M-d' (isearch-del-char). >> Then continue searching with 'C-s' from the same place. But with the patch, >> 'C-M-d' unexpectedly jumps to a previous match, and every next 'C-M-d' >> jumps back it its previous match that makes no sense. > > I can verify this. But I think you just found a related but independent > issue. Consider this example: > > (progn > (save-excursion (insert "a1 b2 a3")) > (isearch-mode t t) > (isearch-printing-char ?a) > (isearch-repeat-forward) > (isearch-printing-char ?\\) > (isearch-printing-char ?|) > (isearch-printing-char ?b)) > > When "\\|b" is added to search string, the point is at "3". So it > shouldn't move, right? But instead it goes back to "2". > > Do you get the same behavior? I tested it in non-regexp mode, and the aforementioned use case is also for non-regexp mode. But in the regexp mode, maybe what you found is a bug.