GNU bug report logs -
#21684
25.0.50; undo in query-replace w/o exit
Previous Next
Reported by: Tino Calancha <f92capac <at> gmail.com>
Date: Wed, 14 Oct 2015 13:24:01 UTC
Severity: wishlist
Tags: patch
Found in version 25.0.50
Fixed in version 26.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 21684 <at> debbugs.gnu.org (full text, mbox):
> See new patch (replace-2.patch): AFAICS is working as i wanted.
> Please try it and feel free to give me any comments if you
> find some issues to fix/improve.
Thank you, your patch is working well. One issue to improve I noticed that
when a previous replacement is skipped with "n" then undo "U" acts exactly
as backup "^" by going to the previous place, and doing no undo actually.
Maybe better would be for undo "U" to only undo and skip non-replacement
entries in the stack? (Implementation-wise this means looping until
finding a previous non-replacement entry in the stack).
A minor comment is that to save cons cells you could just put both new
elements shallow as elements 3 and 4 in the stack instead of adding
a list of them.
Another minor suggestions is for better names you could rename
the prefix -solved-regexp to -replaced, i.e. replace
search-string-solved-regexp, next-replacement-solved-regexp with
search-string-replaced, next-replacement-replaced.
Also we need this feature to be documented in etc/NEWS.
Have you already signed FSF copyright assignment papers?
Your patch for bug#21663 is short enough to be installed without the
copyright paperwork, but your changes for bug#21684 require it.
This bug report was last modified 8 years and 264 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.