From f65958a94de115dda0ba0f187121aa0a548e8d90 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 6 Aug 2021 03:02:13 +0300 Subject: [PATCH] Provide a default for xref-find-apropos pattern * lisp/progmodes/xref.el (xref-find-apropos): Provide a default for the pattern (bug#49731). --- lisp/progmodes/xref.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 404752536f8..69378a561ea 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -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") -- 2.39.2