1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 15:00:45 -08:00

Provide a default for xref-find-apropos pattern

* lisp/progmodes/xref.el (xref-find-apropos):
Provide a default for the pattern (bug#49731).
This commit is contained in:
Dmitry Gutov 2021-08-06 03:02:13 +03:00
parent 232be9bf87
commit f65958a94d

View file

@ -1356,7 +1356,9 @@ This command is intended to be bound to a mouse event."
The argument has the same meaning as in `apropos'."
(interactive (list (read-string
"Search for pattern (word list or regexp): "
nil 'xref--read-pattern-history)))
nil 'xref--read-pattern-history
(xref-backend-identifier-at-point
(xref-find-backend)))))
(require 'apropos)
(let* ((newpat
(if (and (version< emacs-version "28.0.50")