From 232be9bf87e7f1086f45deca2188b926123cb33c Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 6 Aug 2021 02:49:42 +0300 Subject: [PATCH] Change the xref-goto-xref error message * lisp/progmodes/xref.el (xref-goto-xref): Change the error message (bug#49846). --- lisp/progmodes/xref.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 7453dbed992..404752536f8 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -657,7 +657,7 @@ quit the *xref* buffer." (interactive "P") (let* ((buffer (current-buffer)) (xref (or (xref--item-at-point) - (user-error "No reference at point"))) + (user-error "Choose a reference to visit"))) (xref--current-item xref)) (xref--show-location (xref-item-location xref) (if quit 'quit t)) (if (fboundp 'next-error-found) -- 2.39.2