Function: eca-editor--xref-backend

eca-editor--xref-backend is a natively compiled function defined in eca-editor.el.

Signature

(eca-editor--xref-backend)

Documentation

Return a usable xref backend for the current buffer, if any.

The default etags backend only counts when a tags table is already loaded: consulting it otherwise prompts for a TAGS file, which must never happen while answering a server request.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-editor.el
(defun eca-editor--xref-backend ()
  "Return a usable xref backend for the current buffer, if any.
The default etags backend only counts when a tags table is
already loaded: consulting it otherwise prompts for a TAGS file,
which must never happen while answering a server request."
  (let ((backend (xref-find-backend)))
    (unless (and (eq backend 'etags)
                 (not (or (bound-and-true-p tags-file-name)
                          (bound-and-true-p tags-table-list))))
      backend)))