]> git.eshelyaron.com Git - emacs.git/commitdiff
xref: error -> user-error: reduce debug-on-error annoyance
authorDaniel Colascione <dancol@dancol.org>
Sat, 22 Mar 2025 01:09:19 +0000 (21:09 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 23 Mar 2025 19:23:09 +0000 (20:23 +0100)
* lisp/progmodes/xref.el (xref--next-error-function): Use user-error
instead of error.

(cherry picked from commit 2fcf6b40869f085b32876206179bf1dfe2dc2c93)

lisp/progmodes/xref.el

index e7f5b2dad4683a545dc2d629639532999d57eafd..5ce0e53654a819d3ad06eccfd55b596a36e595a0 100644 (file)
@@ -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)))