Function: cider-xref-fn-refs-in-source

cider-xref-fn-refs-in-source is an autoloaded, interactive and byte-compiled function defined in cider-xref.el.

Signature

(cider-xref-fn-refs-in-source &optional SYMBOL)

Documentation

Show references to SYMBOL found by scanning the project's source files.

Unlike cider-xref-fn-refs, which introspects the runtime and only sees loaded namespaces, this scans the files on disk, so it also finds references in code that hasn't been evaluated yet. When a REPL is connected SYMBOL is resolved to its canonical namespace first; otherwise the search falls back to matching the bare name and is correspondingly more approximate.

The results are textual matches and can include false positives such as shadowing locals or same-named vars from a different namespace.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-xref.el
;;;###autoload
(defun cider-xref-fn-refs-in-source (&optional symbol)
  "Show references to SYMBOL found by scanning the project's source files.
Unlike `cider-xref-fn-refs', which introspects the runtime and only sees loaded
namespaces, this scans the files on disk, so it also finds references in code
that hasn't been evaluated yet.  When a REPL is connected SYMBOL is resolved to
its canonical namespace first; otherwise the search falls back to matching the
bare name and is correspondingly more approximate.

The results are textual matches and can include false positives such as
shadowing locals or same-named vars from a different namespace."
  (interactive)
  (let ((symbol (or symbol (cider-symbol-at-point)
                    (read-string "Find references in source for: "))))
    (cider-xref--show-source-references symbol)))