Mercurial > emacs
comparison man/search.texi @ 64941:b0da9981adab
(Replacement Commands): Mention query-replace key binding.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 13 Aug 2005 19:45:02 +0000 |
parents | 016c8310240c |
children | 183e1bf747e4 2d92f5c9d6ae |
comparison
equal
deleted
inserted
replaced
64940:010c6f5c9280 | 64941:b0da9981adab |
---|---|
915 @cindex global substitution | 915 @cindex global substitution |
916 | 916 |
917 Global search-and-replace operations are not needed often in Emacs, | 917 Global search-and-replace operations are not needed often in Emacs, |
918 but they are available. In addition to the simple @kbd{M-x | 918 but they are available. In addition to the simple @kbd{M-x |
919 replace-string} command which replaces all occurrences, | 919 replace-string} command which replaces all occurrences, |
920 there is a @kbd{M-x query-replace} command which finds each occurrence | 920 there is @kbd{M-%} (@code{query-replace}), which presents each occurrence |
921 of the pattern and asks you whether to replace it. | 921 of the pattern and asks you whether to replace it. |
922 | 922 |
923 The replace commands normally operate on the text from point to the | 923 The replace commands normally operate on the text from point to the |
924 end of the buffer; however, in Transient Mark mode (@pxref{Transient | 924 end of the buffer; however, in Transient Mark mode (@pxref{Transient |
925 Mark}), when the mark is active, they operate on the region. The | 925 Mark}), when the mark is active, they operate on the region. The |