From: Daniel Colascione Date: Sat, 22 Mar 2025 01:09:19 +0000 (-0400) Subject: xref: error -> user-error: reduce debug-on-error annoyance X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce1051d755eeb12b8d6ca8966a82b9f0497496fd;p=emacs.git xref: error -> user-error: reduce debug-on-error annoyance * lisp/progmodes/xref.el (xref--next-error-function): Use user-error instead of error. (cherry picked from commit 2fcf6b40869f085b32876206179bf1dfe2dc2c93) --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index e7f5b2dad46..5ce0e53654a 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -1167,7 +1167,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)))