aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-01-23 08:53:35 +0200
committerEli Zaretskii2016-01-23 08:53:35 +0200
commit035bd8159fe5bcea15eacc8a23ab54f4bc3b6f17 (patch)
tree2ee1b38b8b018cc18a0f7476ad72a2402619901e
parent0275e7ba6ee76f56ab199f006d978e37e3715610 (diff)
downloademacs-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.texi26
-rw-r--r--etc/NEWS16
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
778Compilation, elisp, The Emacs Lisp Reference Manual}. 778Compilation, 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}
784Search all the specified files for the regular expression @var{regexp} 784Search all the specified files for the regular expression @var{regexp}
785(@code{dired-do-search}). 785(@code{dired-do-find-regexp}).
786 786
787This command is a variant of @code{tags-search}. The search stops at 787This command is a variant of @code{xref-find-apropos}
788the first match it finds; use @kbd{M-x tags-loop-continue} to resume 788(@pxref{Identifier Search}), it displays the @file{*xref*} buffer,
789the search and find the next match. @xref{Identifier Search}. 789where you can navigate between matches and display them as needed
790using 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}
795Perform @code{query-replace-regexp} on each of the specified files, 796Perform @code{query-replace-regexp} on each of the specified files,
796replacing matches for @var{regexp} with the string 797replacing 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
799This command is a variant of @code{tags-query-replace}. If you exit the 800This command is a variant of @code{xref-query-replace}. It presents
800query replace loop, you can use @kbd{M-x tags-loop-continue} to resume 801an @file{*xref*} buffer that lists all the matches of @var{regexp},
801the scan and replace more matches. @xref{Identifier Search}. 802and you can use the special commands in that buffer (@pxref{Xref
803Commands}). In particular, if you exit the query replace loop, you
804can 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
diff --git a/etc/NEWS b/etc/NEWS
index 786a3918902..a3fd1ed51a2 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1014,6 +1014,10 @@ As a result of this, the following commands are now obsolete:
1014replacements yet. 1014replacements yet.
1015 1015
1016+++ 1016+++
1017*** Variants of `tags-search' and `tags-query-replace' in Dired were also
1018replaced 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
1153compression command is determined from the new 1157compression 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.
1162These 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
1165in the `*xref*' buffer and let you move through the matches. No need
1166to use `tags-loop-continue' to resume the search or replace loop. The
1167previous commands, `dired-do-search' and
1168`dired-do-query-replace-regexp', are still available, but not bound to
1169keys; rebind `A' and `Q' to invoke them if you want the old behavior
1170back. We intend to obsolete the old commands in a future release.
1171
1156** Tabulated List Mode 1172** Tabulated List Mode
1157 1173
1158+++ 1174+++