diff options
| author | Daniel Colascione | 2025-03-21 21:09:19 -0400 |
|---|---|---|
| committer | Daniel Colascione | 2025-03-21 21:11:07 -0400 |
| commit | 2fcf6b40869f085b32876206179bf1dfe2dc2c93 (patch) | |
| tree | 5fbd326124b9dba26ff7044cfb82fdf8b5737763 | |
| parent | e5ee1d2a74c6a0989c863c3c6c06eba31efaecb3 (diff) | |
| download | emacs-2fcf6b40869f085b32876206179bf1dfe2dc2c93.tar.gz emacs-2fcf6b40869f085b32876206179bf1dfe2dc2c93.zip | |
xref: error -> user-error: reduce debug-on-error annoyance
* lisp/progmodes/xref.el (xref--next-error-function): Use user-error
instead of error.
| -rw-r--r-- | lisp/progmodes/xref.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index f37053a6327..addd647d99a 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -1080,7 +1080,7 @@ This function is used as a value for `add-log-current-defun-function'." | |||
| 1080 | (let ((xref-current-item xref)) | 1080 | (let ((xref-current-item xref)) |
| 1081 | (xref--show-location (xref-item-location xref) t))) | 1081 | (xref--show-location (xref-item-location xref) t))) |
| 1082 | (t | 1082 | (t |
| 1083 | (error "No %s xref" (if backward "previous" "next")))))) | 1083 | (user-error "No %s xref" (if backward "previous" "next")))))) |
| 1084 | 1084 | ||
| 1085 | (defvar xref--button-map | 1085 | (defvar xref--button-map |
| 1086 | (let ((map (make-sparse-keymap))) | 1086 | (let ((map (make-sparse-keymap))) |