1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-03 03:32:44 -07:00

read-regexp-suggestions doc string improvement

* lisp/replace.el (read-regexp-suggestions): Add a link to the
manual to explain what a tag is (bug#46089).

(cherry picked from commit f9cc2d4824)
This commit is contained in:
Lars Ingebrigtsen 2021-01-27 03:47:02 +01:00 committed by Eli Zaretskii
parent 932aba674c
commit 0340e9eccb

View file

@ -786,10 +786,12 @@ the function that you set this to can check `this-command'."
(defun read-regexp-suggestions () (defun read-regexp-suggestions ()
"Return a list of standard suggestions for `read-regexp'. "Return a list of standard suggestions for `read-regexp'.
By default, the list includes the tag at point, the last isearch regexp, By default, the list includes the \"tag\" at point (see Info
the last isearch string, and the last replacement regexp. `read-regexp' node `(emacs) Identifier Search'), the last isearch regexp, the
appends the list returned by this function to the end of values available last isearch string, and the last replacement regexp.
via \\<minibuffer-local-map>\\[next-history-element]." `read-regexp' appends the list returned by this function to the
end of values available via
\\<minibuffer-local-map>\\[next-history-element]."
(list (list
(find-tag-default-as-regexp) (find-tag-default-as-regexp)
(find-tag-default-as-symbol-regexp) (find-tag-default-as-symbol-regexp)