You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies, but I don't have the time (or probably the expertise) to look into the cause of this, but I noticed that during recursive editing the anzu version of query-replace does not update the matches.
To reproduce, open a blank buffer and enter:
a
b
a
b
Move the point to the beginning of the buffer and use M-x query-replace to replace a with x. Before accepting the changes, type C-r to enter a recursive edit. Move to the end of the file and add a newline with another a like so:
a
b
a
b
a
Now exit recursive edit (C-M-c). The new a is also highlighted. You can change all a's with 3x y or !, resulting in:
x
b
x
b
x
Performing the same operations with anzu-query-replace results in only the first two a's being replaced:
x
b
x
b
a
I'm not sure if this is something that's technically difficult to solve, or just overlooked as it's probably not commonly come across. I hope the later, but either way I thought it would be helpful to open an issue.
The text was updated successfully, but these errors were encountered:
The patch doesn't seem to address the issue on my system. From a bit of extra testing, here is some more information:
If the recursive edit is at the end of the buffer (as was my original issue), the issue remains with or without the patch.
If the recursive edit is not at the end of the buffer (say open a newline at line 2 and add another a, then anzu-query-replace works the same as query-replace, however, the anzu modeline indicator is not updated (still says (1/2) instead of updating to (1/3).
Apologies, but I don't have the time (or probably the expertise) to look into the cause of this, but I noticed that during recursive editing the anzu version of query-replace does not update the matches.
To reproduce, open a blank buffer and enter:
Move the point to the beginning of the buffer and use
M-x query-replace
to replacea
withx
. Before accepting the changes, typeC-r
to enter a recursive edit. Move to the end of the file and add a newline with anothera
like so:Now exit recursive edit (
C-M-c
). The newa
is also highlighted. You can change alla
's with 3xy
or!
, resulting in:Performing the same operations with
anzu-query-replace
results in only the first twoa
's being replaced:I'm not sure if this is something that's technically difficult to solve, or just overlooked as it's probably not commonly come across. I hope the later, but either way I thought it would be helpful to open an issue.
The text was updated successfully, but these errors were encountered: