bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55050: 27.2; Doc strings for commands that do query-replacements


From: Juri Linkov
Subject: bug#55050: 27.2; Doc strings for commands that do query-replacements
Date: Thu, 21 Apr 2022 19:04:42 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

> So I added the minimal instructions to all the commands I found which
> perform query-replace of some sort: how to accept a replacement and
> how to skip it -- with a reference to 'h' that will show the full
> instructions.  This, of course, is _in_addition_ to the already
> existing link to 'query-replace'/'query-replace-regexp', which in
> itself is a reference to that stuff.

Actually this change was in isearch-occur unrelated to query-replace.
Maybe you meant to add it to isearch-query-replace-regexp?

diff --git a/lisp/isearch.el b/lisp/isearch.el
index 34e3b69475..d829744c3a 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -2393,7 +2398,12 @@ isearch-occur
 command was a regular expression search, REGEXP is the regular
 expression used in that search.  If the last search command searched
 for a literal string, REGEXP is constructed by quoting all the special
-characters in that string."
+characters in that string.
+
+As each match is found, the user must type a character saying
+what to do with it.  Type SPC or `y' to replace the match,
+DEL or `n' to skip and go to the next match.  For more directions,
+type \\[help-command] at that time."
   (interactive
    (let* ((perform-collect (consp current-prefix-arg))
          (regexp (cond





reply via email to

[Prev in Thread] Current Thread [Next in Thread]