diff options
| author | Eli Zaretskii | 2016-01-23 08:53:35 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-01-23 08:53:35 +0200 |
| commit | 035bd8159fe5bcea15eacc8a23ab54f4bc3b6f17 (patch) | |
| tree | 2ee1b38b8b018cc18a0f7476ad72a2402619901e | |
| parent | 0275e7ba6ee76f56ab199f006d978e37e3715610 (diff) | |
| download | emacs-035bd8159fe5bcea15eacc8a23ab54f4bc3b6f17.tar.gz emacs-035bd8159fe5bcea15eacc8a23ab54f4bc3b6f17.zip | |
Update documentation for Dired search and replace
* doc/emacs/dired.texi (Operating on Files): Update descriptions
of 'A' and 'Q' now bound to 'dired-do-find-regexp' and
'dired-do-find-regexp-and-replace'.
* etc/NEWS: Mention xref-related changes in Dired.
| -rw-r--r-- | doc/emacs/dired.texi | 26 | ||||
| -rw-r--r-- | etc/NEWS | 16 |
2 files changed, 31 insertions, 11 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 855e6531a66..201b5554f41 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi | |||
| @@ -778,27 +778,31 @@ Byte compile the specified Emacs Lisp files | |||
| 778 | Compilation, elisp, The Emacs Lisp Reference Manual}. | 778 | Compilation, elisp, The Emacs Lisp Reference Manual}. |
| 779 | 779 | ||
| 780 | @kindex A @r{(Dired)} | 780 | @kindex A @r{(Dired)} |
| 781 | @findex dired-do-search | 781 | @findex dired-do-find-regexp |
| 782 | @cindex search multiple files (in Dired) | 782 | @cindex search multiple files (in Dired) |
| 783 | @item A @var{regexp} @key{RET} | 783 | @item A @var{regexp} @key{RET} |
| 784 | Search all the specified files for the regular expression @var{regexp} | 784 | Search all the specified files for the regular expression @var{regexp} |
| 785 | (@code{dired-do-search}). | 785 | (@code{dired-do-find-regexp}). |
| 786 | 786 | ||
| 787 | This command is a variant of @code{tags-search}. The search stops at | 787 | This command is a variant of @code{xref-find-apropos} |
| 788 | the first match it finds; use @kbd{M-x tags-loop-continue} to resume | 788 | (@pxref{Identifier Search}), it displays the @file{*xref*} buffer, |
| 789 | the search and find the next match. @xref{Identifier Search}. | 789 | where you can navigate between matches and display them as needed |
| 790 | using the commands described in @ref{Xref Commands}. | ||
| 790 | 791 | ||
| 791 | @kindex Q @r{(Dired)} | 792 | @kindex Q @r{(Dired)} |
| 792 | @findex dired-do-query-replace-regexp | 793 | @findex dired-do-find-regexp-and-replace |
| 793 | @cindex search and replace in multiple files (in Dired) | 794 | @cindex search and replace in multiple files (in Dired) |
| 794 | @item Q @var{regexp} @key{RET} @var{to} @key{RET} | 795 | @item Q @var{regexp} @key{RET} @var{to} @key{RET} |
| 795 | Perform @code{query-replace-regexp} on each of the specified files, | 796 | Perform @code{query-replace-regexp} on each of the specified files, |
| 796 | replacing matches for @var{regexp} with the string | 797 | replacing matches for @var{regexp} with the string |
| 797 | @var{to} (@code{dired-do-query-replace-regexp}). | 798 | @var{to} (@code{dired-do-find-regexp-and-replace}). |
| 798 | 799 | ||
| 799 | This command is a variant of @code{tags-query-replace}. If you exit the | 800 | This command is a variant of @code{xref-query-replace}. It presents |
| 800 | query replace loop, you can use @kbd{M-x tags-loop-continue} to resume | 801 | an @file{*xref*} buffer that lists all the matches of @var{regexp}, |
| 801 | the scan and replace more matches. @xref{Identifier Search}. | 802 | and you can use the special commands in that buffer (@pxref{Xref |
| 803 | Commands}). In particular, if you exit the query replace loop, you | ||
| 804 | can use @kbd{r} in that buffer to replace more matches. | ||
| 805 | @xref{Identifier Search}. | ||
| 802 | @end table | 806 | @end table |
| 803 | 807 | ||
| 804 | @node Shell Commands in Dired | 808 | @node Shell Commands in Dired |
| @@ -1014,6 +1014,10 @@ As a result of this, the following commands are now obsolete: | |||
| 1014 | replacements yet. | 1014 | replacements yet. |
| 1015 | 1015 | ||
| 1016 | +++ | 1016 | +++ |
| 1017 | *** Variants of `tags-search' and `tags-query-replace' in Dired were also | ||
| 1018 | replaced by xref-style commands, see the "Dired" section below. | ||
| 1019 | |||
| 1020 | +++ | ||
| 1017 | *** New variables | 1021 | *** New variables |
| 1018 | 1022 | ||
| 1019 | `find-tag-marker-ring-length' is now an obsolete alias for | 1023 | `find-tag-marker-ring-length' is now an obsolete alias for |
| @@ -1153,6 +1157,18 @@ compress many marked files into a single named archive. The | |||
| 1153 | compression command is determined from the new | 1157 | compression command is determined from the new |
| 1154 | `dired-compress-files-alist' variable. | 1158 | `dired-compress-files-alist' variable. |
| 1155 | 1159 | ||
| 1160 | +++ | ||
| 1161 | *** New user interface for the `A' and `Q' commands. | ||
| 1162 | These keys, now bound to `dired-do-find-regexp' and | ||
| 1163 | `dired-do-find-regexp-and-replace', work similarly to | ||
| 1164 | `xref-find-apropos' and `xref-query-replace': they present the matches | ||
| 1165 | in the `*xref*' buffer and let you move through the matches. No need | ||
| 1166 | to use `tags-loop-continue' to resume the search or replace loop. The | ||
| 1167 | previous commands, `dired-do-search' and | ||
| 1168 | `dired-do-query-replace-regexp', are still available, but not bound to | ||
| 1169 | keys; rebind `A' and `Q' to invoke them if you want the old behavior | ||
| 1170 | back. We intend to obsolete the old commands in a future release. | ||
| 1171 | |||
| 1156 | ** Tabulated List Mode | 1172 | ** Tabulated List Mode |
| 1157 | 1173 | ||
| 1158 | +++ | 1174 | +++ |