xref: error -> user-error: reduce debug-on-error annoyance

* lisp/progmodes/xref.el (xref--next-error-function): Use user-error
instead of error.
This commit is contained in:
Daniel Colascione 2025-03-21 21:09:19 -04:00
parent e5ee1d2a74
commit 2fcf6b4086

View file

@ -1080,7 +1080,7 @@ This function is used as a value for `add-log-current-defun-function'."
(let ((xref-current-item xref))
(xref--show-location (xref-item-location xref) t)))
(t
(error "No %s xref" (if backward "previous" "next"))))))
(user-error "No %s xref" (if backward "previous" "next"))))))
(defvar xref--button-map
(let ((map (make-sparse-keymap)))