From: Dmitry Gutov Date: Thu, 5 Aug 2021 23:49:42 +0000 (+0300) Subject: Change the xref-goto-xref error message X-Git-Tag: emacs-28.0.90~1591^2~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=232be9bf87e7f1086f45deca2188b926123cb33c;p=emacs.git Change the xref-goto-xref error message * lisp/progmodes/xref.el (xref-goto-xref): Change the error message (bug#49846). --- 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)