[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Global search-and-replace operations are not needed often in Emacs, but they
are available. In addition to the simple M-x replace-string command
which replaces all occurrences, there is M-% (query-replace
),
which presents each occurrence of the pattern and asks you whether to
replace it.
The replace commands normally operate on the text from point to the end of
the buffer; however, in Transient Mark mode (voir la section Transient Mark Mode), when
the mark is active, they operate on the region. The basic replace commands
replace one string (or regexp) with one replacement string. It is possible
to perform several replacements in parallel using the command
expand-region-abbrevs
(voir la section Controlling Abbrev Expansion).
20.9.1 Unconditional Replacement | Replacing all matches for a string. | |
20.9.2 Regexp Replacement | Replacing all matches for a regexp. | |
20.9.3 Replace Commands and Case | How replacements preserve case of letters. | |
20.9.4 Query Replace | How to use querying. |
Ce document a été généré par Eric Reinbold le 23 Février 2009 en utilisant texi2html 1.78.