Function: cider-company-location
cider-company-location is a byte-compiled function defined in
cider-completion.el.
Signature
(cider-company-location VAR)
Documentation
Open VAR's definition in a buffer.
Returns the cons of the buffer itself and the location of VAR's definition in the buffer.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-completion.el
(defun cider-company-location (var)
"Open VAR's definition in a buffer.
Returns the cons of the buffer itself and the location of VAR's definition
in the buffer."
(when-let* ((info (cider-var-info var))
(file (nrepl-dict-get info "file"))
(line (nrepl-dict-get info "line"))
(buffer (cider-find-file file)))
(with-current-buffer buffer
(save-excursion
(goto-char (point-min))
(forward-line (1- line))
(cons buffer (point))))))