query-replace-string - Search and replace a string - with query
query-replace-string (esc C-r)
query-replace-string operates like the replace-string(2) command. replacing one string with another. However, it allows you to step through each string and ask you if you wish to make the replacement. The user is prompted for a replacement response as follows:-
?
y or space
n
a or !
e
l
u
^G
$result(5) is set to a list giving the number of substitutions, the final replace mode ('a' for all, 'l' for last or 'q' for query) and the replace with string.
Refer to search-forward(2) for a description of the magic mode search characters.
(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12