mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
xref-find-backend: Error instead of returning nil
* lisp/progmodes/xref.el (xref-find-backend): Signal error when we can't find a backend to use (bug#80246).
This commit is contained in:
parent
38d0ac8f67
commit
3937833fff
1 changed files with 3 additions and 1 deletions
|
|
@ -247,7 +247,9 @@ generic functions.")
|
|||
|
||||
;;;###autoload
|
||||
(defun xref-find-backend ()
|
||||
(run-hook-with-args-until-success 'xref-backend-functions))
|
||||
(or
|
||||
(run-hook-with-args-until-success 'xref-backend-functions)
|
||||
(user-error "No Xref backend available")))
|
||||
|
||||
(cl-defgeneric xref-backend-definitions (backend identifier)
|
||||
"Find definitions of IDENTIFIER.
|
||||
|
|
|
|||
Loading…
Reference in a new issue