bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56522: 28.1.50; Mismatch data after replace undo


From: Juri Linkov
Subject: bug#56522: 28.1.50; Mismatch data after replace undo
Date: Tue, 12 Jul 2022 20:46:37 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

X-Debbugs-CC: Tino Calancha <tino.calancha@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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]