diff options
| author | Romain Francoise | 2006-05-07 17:08:48 +0000 |
|---|---|---|
| committer | Romain Francoise | 2006-05-07 17:08:48 +0000 |
| commit | 99069bdb490a824113a58fa86ca1dabc52801c5a (patch) | |
| tree | a5aa78a6a1452e97741b0c3061f4aab85ac9a043 | |
| parent | 5a36d8349df0f59c79a310b20a0966286560f557 (diff) | |
| download | emacs-99069bdb490a824113a58fa86ca1dabc52801c5a.tar.gz emacs-99069bdb490a824113a58fa86ca1dabc52801c5a.zip | |
(Replacing text across multiple files): Expand node to explain how
to use `dired-do-query-replace-regexp' in more detail, based on
suggestion by Eric Hanchrow <offby1@blarg.net>.
| -rw-r--r-- | man/ChangeLog | 6 | ||||
| -rw-r--r-- | man/faq.texi | 36 |
2 files changed, 32 insertions, 10 deletions
diff --git a/man/ChangeLog b/man/ChangeLog index 98698fed74b..c82b73d4da0 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | 2006-05-07 Romain Francoise <romain@orebokech.com> | 1 | 2006-05-07 Romain Francoise <romain@orebokech.com> |
| 2 | 2 | ||
| 3 | * faq.texi (Using regular expressions): Fix typo. | 3 | * faq.texi (Using regular expressions): Fix typo. |
| 4 | (Packages that do not come with Emacs, Right-to-left alphabets): | 4 | (Packages that do not come with Emacs): Fix capitalization. |
| 5 | Fix capitalization. | 5 | (Replacing text across multiple files): Expand node to explain how |
| 6 | to use `dired-do-query-replace-regexp' in more detail, based on | ||
| 7 | suggestion by Eric Hanchrow <offby1@blarg.net>. | ||
| 6 | 8 | ||
| 7 | 2006-05-06 Michael Albinus <michael.albinus@gmx.de> | 9 | 2006-05-06 Michael Albinus <michael.albinus@gmx.de> |
| 8 | 10 | ||
diff --git a/man/faq.texi b/man/faq.texi index 7e1af24f3bb..3fa69aa4395 100644 --- a/man/faq.texi +++ b/man/faq.texi | |||
| @@ -2261,15 +2261,35 @@ is actually typical for regexp syntax.) | |||
| 2261 | @cindex Replacing strings across files | 2261 | @cindex Replacing strings across files |
| 2262 | @cindex Multiple files, replacing across | 2262 | @cindex Multiple files, replacing across |
| 2263 | @cindex Files, replacing strings across multiple | 2263 | @cindex Files, replacing strings across multiple |
| 2264 | @cindex Recursive search/replace operations | ||
| 2264 | 2265 | ||
| 2265 | The ``tags'' feature of Emacs includes the command | 2266 | As of Emacs 19.29, Dired mode (@kbd{M-x dired @key{RET}}, or @kbd{C-x |
| 2266 | @code{tags-query-replace} which performs a query-replace across all the | 2267 | d}) supports the command @code{dired-do-query-replace} (@kbd{Q}), which |
| 2267 | files mentioned in the @file{TAGS} file. @inforef{Tags Search, Tags Search, | 2268 | allows users to replace regular expressions in multiple files. |
| 2268 | emacs}. | 2269 | |
| 2270 | You can use this command to perform search/replace operations on | ||
| 2271 | multiple files by following the following steps: | ||
| 2272 | |||
| 2273 | @itemize @bullet | ||
| 2274 | @item | ||
| 2275 | Assemble a list of files you want to operate on with either | ||
| 2276 | @code{find-dired}, @code{find-name-dired} or @code{find-grep-dired}. | ||
| 2277 | |||
| 2278 | @item | ||
| 2279 | Mark all files in the resulting Dired buffer using @kbd{t}. | ||
| 2280 | |||
| 2281 | @item | ||
| 2282 | Use @kbd{Q} to start a @code{query-replace-regexp} session on the marked | ||
| 2283 | files. | ||
| 2284 | |||
| 2285 | @item | ||
| 2286 | To accept all replacements in each file, hit @kbd{!}. | ||
| 2287 | @end itemize | ||
| 2269 | 2288 | ||
| 2270 | As of Emacs 19.29, Dired mode (@kbd{M-x dired @key{RET}}, or @kbd{C-x d}) | 2289 | Another way to do the same thing is to use the ``tags'' feature of |
| 2271 | supports the command @code{dired-do-query-replace} (@kbd{Q}), which allows | 2290 | Emacs: it includes the command @code{tags-query-replace} which performs |
| 2272 | users to replace regular expressions in multiple files. | 2291 | a query-replace across all the files mentioned in the @file{TAGS} file. |
| 2292 | @inforef{Tags Search, Tags Search, emacs}. | ||
| 2273 | 2293 | ||
| 2274 | @node Documentation for etags, Disabling backups, Replacing text across multiple files, Common requests | 2294 | @node Documentation for etags, Disabling backups, Replacing text across multiple files, Common requests |
| 2275 | @section Where is the documentation for @code{etags}? | 2295 | @section Where is the documentation for @code{etags}? |
| @@ -4878,7 +4898,7 @@ Emacs 18. Write to Joel if you want the patches or package. | |||
| 4878 | @file{hebrew.el} requires a Hebrew screen font, but no other hardware support. | 4898 | @file{hebrew.el} requires a Hebrew screen font, but no other hardware support. |
| 4879 | Joel has a screen font for PCs running MS-DOS or GNU/Linux. | 4899 | Joel has a screen font for PCs running MS-DOS or GNU/Linux. |
| 4880 | 4900 | ||
| 4881 | You might also try to query Archie for files named with @file{hebrew}; | 4901 | You might also try to query archie for files named with @file{hebrew}; |
| 4882 | several ftp sites in Israel may also have the necessary files. | 4902 | several ftp sites in Israel may also have the necessary files. |
| 4883 | 4903 | ||
| 4884 | @c ------------------------------------------------------------ | 4904 | @c ------------------------------------------------------------ |