Function: xref-find-references

xref-find-references is an autoloaded, interactive and byte-compiled function defined in xref.el.gz.

Signature

(xref-find-references IDENTIFIER)

Documentation

Find references to the identifier at point.

This command might prompt for the identifier as needed, perhaps offering the symbol at point as the default. With prefix argument, or if xref-prompt-for-identifier is t, always prompt for the identifier. If xref-prompt-for-identifier is nil, prompt only if there's no usable symbol at point.

View in manual

Probably introduced at or before Emacs version 27.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
;;;###autoload
(defun xref-find-references (identifier)
  "Find references to the identifier at point.
This command might prompt for the identifier as needed, perhaps
offering the symbol at point as the default.
With prefix argument, or if `xref-prompt-for-identifier' is t,
always prompt for the identifier.  If `xref-prompt-for-identifier'
is nil, prompt only if there's no usable symbol at point."
  (interactive (list (xref--read-identifier "Find references of: ")))
  (xref--find-xrefs identifier 'references identifier nil))