GNU bug report logs - #46469
27.1; `isearch-del-char' should move point further back

Previous Next

Package: emacs;

Reported by: Augusto Stoffel <arstoffel <at> gmail.com>

Date: Fri, 12 Feb 2021 19:23:02 UTC

Severity: normal

Found in version 27.1

Full log


View this message in rfc822 format

From: Augusto Stoffel <arstoffel <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 46469 <at> debbugs.gnu.org
Subject: bug#46469: 27.1; `isearch-del-char' should move point further back
Date: Wed, 28 Apr 2021 23:16:11 +0200
> 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?




This bug report was last modified 4 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.