Function: xref-backend-references

xref-backend-references is a byte-compiled function defined in xref.el.gz.

Signature

(xref-backend-references BACKEND IDENTIFIER)

Documentation

Find references of IDENTIFIER.

The result must be a list of xref objects. If no references can be found, return nil.

The default implementation uses xref-references-in-directory.

Implementations

(xref-backend-references (BACKEND (eql combobulate)) _) in `combobulate-query.el'.

Using `combobulate-xref-query', find all nodes and return them.

The `combobulate-xref-buffer' is the buffer that is used to associate the captured nodes.

(xref-backend-references BACKEND IDENTIFIER) in `xref.el'.

Undocumented

(xref-backend-references (BACKEND (eql 'elisp)) IDENTIFIER (NIL ((&context . major-mode) derived-mode help-mode))) in `help-fns.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(cl-defgeneric xref-backend-references (_backend identifier)
  "Find references of IDENTIFIER.
The result must be a list of xref objects.  If no references can
be found, return nil.

The default implementation uses `xref-references-in-directory'."
  (mapcan
   (lambda (dir)
     (message "Searching %s..." dir)
     (redisplay)
     (prog1
         (xref-references-in-directory identifier dir)
       (message "Searching %s... done" dir)))
   (let ((pr (project-current t)))
     (project-combine-directories
      (cons
       (xref--project-root pr)
       (project-external-roots pr))))))