GNU bug report logs - #56522
28.1.50; Mismatch data after replace undo

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 12 Jul 2022 17:56:02 UTC

Severity: normal

Found in version 28.1.50

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.1.50; Mismatch data after replace undo
Date: Tue, 12 Jul 2022 20:46:37 +0300
X-Debbugs-CC: Tino Calancha <tino.calancha <at> gmail.com>

Something is wrong with next-replacement that is not updated
after Undo in perform-replace.  The minimal test case:

1. add to a buffer such text:

   a! b? .

2. then invoke query-replace-regexp with such regexp:

   Query replace regexp: \([!?]\) → <\1>

3. then type:

   y u n y  (i.e. yes, undo, no, yes - that should undo,
             leave the first match unchanged, and replace the second)

4. observe the result:

   a! b<!> .

i.e. the match data in next-replacement for the second match
comes from the first match.




This bug report was last modified 2 years and 339 days ago.

Previous Next


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