[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Like other editors, Emacs has commands for searching for occurrences of a string. The principal search command is unusual in that it is incremental; it begins to search before you have finished typing the search string. There are also nonincremental search commands more like those of other editors.
Besides the usual replace-string
command that finds all occurrences
of one string and replaces them with another, Emacs has a more flexible
replacement command called query-replace
, which asks interactively
which occurrences to replace. There are also commands to find and operate
on all matches for a pattern.
You can also search multiple files under control of a tags table
(voir la section Searching and Replacing with Tags Tables) or through the Dired A command (voir la section Operating on Files), or ask the grep
program to do it (voir la section Searching with Grep under Emacs).
20.1 Recherche incrémentielle | Search happens as you type the string. | |
20.2 Recherche non-incrémentielle | Specify entire string and then search. | |
20.3 Recherche de mots | Search for sequence of words. | |
20.4 Regular Expression Search | Search for match for a regexp. | |
20.5 Syntax of Regular Expressions | Syntax of regular expressions. | |
20.6 Backslash in Regular Expressions | Regular expression constructs starting with `\'. | |
20.7 Regular Expression Example | A complex regular expression explained. | |
20.8 Searching and Case | To ignore case while searching, or not. | |
20.9 Replacement Commands | Search, and replace some or all matches. | |
20.10 Other Search-and-Loop Commands | Operating on all matches for some regexp. |
[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Ce document a été généré par Eric Reinbold le 23 Février 2009 en utilisant texi2html 1.78.