Skip to content

Commit

Permalink
read-regexp-suggestions doc string improvement
Browse files Browse the repository at this point in the history
* lisp/replace.el (read-regexp-suggestions): Add a link to the
manual to explain what a tag is (bug#46089).
  • Loading branch information
larsmagne committed Jan 27, 2021
1 parent eded2a7 commit f9cc2d4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lisp/replace.el
Expand Up @@ -808,10 +808,12 @@ the function that you set this to can check `this-command'."

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

0 comments on commit f9cc2d4

Please sign in to comment.