GNU bug report logs -
#14979
24.3; Feature Request: query-replace-backward
Previous Next
Reported by: Ben A. <ben.a <at> gmx.us>
Date: Mon, 29 Jul 2013 06:32:01 UTC
Severity: wishlist
Found in version 24.3
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 14979 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
>> 1. M-<
>> 2. C-x n n
>> 3. C-M-%
>> 4. M->
>> 6. C-x n w
>
> Forgot step 0,
>
> 0. C-SPC
What you described is a feature known in other editors as
"Current selection only". In Emacs you don't need to use
`C-x n n' and `C-x n w' because `query-replace' limits the
search to the selected region without the need to narrow it.
However, other editors also provide another feature to replace
backwards like you can see in e.g. OpenOffice etc.
[query-replace.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
So this is not a baseless wish to have the same in Emacs.
With the recent introduction of `replace-search' in replace.el
it's straightforward to implement this in Emacs where
`(isearch-forward t)' in `replace-search' could be replaced
with `(isearch-forward replace-forward)' where `replace-forward'
is a new option that can be changed in `isearch-query-replace'
according to the current value of `isearch-forward'.
The benefits of this feature is that it will replace exactly
the same matches that are lazy-highlighted and visited
by the backward isearch.
This bug report was last modified 11 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.