From ce1051d755eeb12b8d6ca8966a82b9f0497496fd Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Fri, 21 Mar 2025 21:09:19 -0400 Subject: [PATCH] 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) --- 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 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))) -- 2.39.5