]> code.delx.au - gnu-emacs/commitdiff
* doc/emacs/search.texi (Query Replace): Document multi-buffer replacement keys.
authorJuri Linkov <juri@jurta.org>
Tue, 16 Oct 2012 23:27:40 +0000 (02:27 +0300)
committerJuri Linkov <juri@jurta.org>
Tue, 16 Oct 2012 23:27:40 +0000 (02:27 +0300)
* doc/emacs/maintaining.texi (Tags Search): Change link "Replace" to
"Query Replace".

* lisp/replace.el (query-replace-help): Mention multi-buffer replacement
keys in the Help message.

Fixes: debbugs:12655
doc/emacs/ChangeLog
doc/emacs/maintaining.texi
doc/emacs/search.texi
lisp/ChangeLog
lisp/replace.el

index 47a4c8da522cf5fe60b1a21cb17904a495bb0659..5ab3c1ab5b8885e20cd7cd0e518b666508348fa6 100644 (file)
@@ -1,3 +1,11 @@
+2012-10-16  Juri Linkov  <juri@jurta.org>
+
+       * search.texi (Query Replace): Document multi-buffer replacement
+       keys.  (Bug#12655)
+
+       * maintaining.texi (Tags Search): Change link "Replace" to
+       "Query Replace".
+
 2012-10-13  Chong Yidong  <cyd@gnu.org>
 
        * files.texi (File Conveniences): ImageMagick enabled by default.
index d21e3af83dd81477a8cc996ab8a86203bbc68122..67214bde22c47e9dd2f9c54019d548c4b14bb596 100644 (file)
@@ -2221,7 +2221,7 @@ the current buffer, followed by the remaining files of the tags table.
 reads a regexp to search for and a string to replace with, just like
 ordinary @kbd{M-x query-replace-regexp}.  It searches much like @kbd{M-x
 tags-search}, but repeatedly, processing matches according to your
-input.  @xref{Replace}, for more information on query replace.
+input.  @xref{Query Replace}, for more information on query replace.
 
 @vindex tags-case-fold-search
 @cindex case-sensitivity and tags search
index 21db02c8ab8bc459f2c56e337956e53fc60bb551..7e46e416219872139438f9b696ce6e356be2f331 100644 (file)
@@ -1239,6 +1239,19 @@ occurrences.
 @item !
 to replace all remaining occurrences without asking again.
 
+@item Y @r{(Upper-case)}
+to replace all remaining occurrences in all remaining buffers in
+multi-buffer replacements (like the Dired `Q' command which performs
+query replace on selected files).  It answers this question and all
+subsequent questions in the series with "yes", without further
+user interaction.
+
+@item N @r{(Upper-case)}
+to skip to the next buffer in multi-buffer replacements without
+replacing remaining occurrences in the current buffer.  It answers
+this question "no", gives up on the questions for the current buffer,
+and continues to the next buffer in the sequence.
+
 @item ^
 to go back to the position of the previous occurrence (or what used to
 be an occurrence), in case you changed it by mistake or want to
index 96f859ec6037a2f9a70ace797a034e7043d9b1d0..437f8d57c9a594528ca7c62984fce290343bb45e 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-16  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (query-replace-help): Mention multi-buffer replacement
+       keys in the Help message.  (Bug#12655)
+
 2012-10-15  Chong Yidong  <cyd@gnu.org>
 
        * emacs-lisp/byte-run.el (defsubst): Doc fix.
index e714015fccf683daf6a3e7f01e3adfa75867a792..4013e4e5df5a8c34e201852b654b20a7a4d1f7ca 100644 (file)
@@ -1603,9 +1603,13 @@ Comma to replace but not move point immediately,
 C-r to enter recursive edit (\\[exit-recursive-edit] to get out again),
 C-w to delete match and recursive edit,
 C-l to clear the screen, redisplay, and offer same replacement again,
-! to replace all remaining matches with no more questions,
+! to replace all remaining matches in this buffer with no more questions,
 ^ to move point back to previous match,
-E to edit the replacement string"
+E to edit the replacement string.
+In multi-buffer replacements type `Y' to replace all remaining
+matches in all remaining buffers with no more questions,
+`N' to skip to the next buffer without replacing remaining matches
+in the current buffer."
   "Help message while in `query-replace'.")
 
 (defvar query-replace-map