Function: cider-xref--select-fn-relation
cider-xref--select-fn-relation is a byte-compiled function defined in
cider-xref.el.
Signature
(cider-xref--select-fn-relation NS SYMBOL REQUEST-FN SUMMARY-PREFIX NOUN)
Documentation
Pick a function related to the var matching NS and SYMBOL and act on it.
NS and SYMBOL default to the current namespace and the symbol at point.
Prompt with completing-read over the names REQUEST-FN returns, using
SUMMARY-PREFIX in the prompt, and run the selected xref action on the choice.
NOUN names the relation for the no-results report.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-xref.el
(defun cider-xref--select-fn-relation (ns symbol request-fn summary-prefix noun)
"Pick a function related to the var matching NS and SYMBOL and act on it.
NS and SYMBOL default to the current namespace and the symbol at point.
Prompt with `completing-read' over the names REQUEST-FN returns, using
SUMMARY-PREFIX in the prompt, and run the selected xref action on the choice.
NOUN names the relation for the no-results report."
(let ((ns (or ns (cider-current-ns)))
(symbol (or symbol (cider-symbol-at-point))))
(unless symbol (user-error "No symbol at point"))
(if-let* ((results (mapcar (lambda (d) (nrepl-dict-get d "name")) (funcall request-fn ns symbol)))
(summary (format "%s %s" summary-prefix symbol)))
(cider-xref-act-on-symbol (completing-read (concat summary ": ") results))
(cider-xref--report-no-results symbol noun))))