Function: consult-eglot--state
consult-eglot--state is a natively compiled function defined in
consult-eglot.el.
Signature
(consult-eglot--state)
Documentation
State function for consult-eglot-symbols to preview candidates.
This is mostly just a copy-paste of consult--grep-state except it doesn't
rely on regexp matching to extract the relevent file and column fields.
Source Code
;; Defined in /nix/store/3v6wy8b5xagm658m9sa8vhwzkykl5mv6-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-eglot-20260613.1443/consult-eglot.el
(defun consult-eglot--state ()
"State function for `consult-eglot-symbols' to preview candidates.
This is mostly just a copy-paste of `consult--grep-state' except it doesn't
rely on regexp matching to extract the relevent file and column fields."
(let ((open (consult--temporary-files))
(jump (consult--jump-state)))
(lambda (action cand)
(when (eq action 'exit)
(funcall open)
(setq open nil))
(funcall jump
action
(and cand
(pcase-let
((`(,file ,line ,col)
(consult-eglot--symbol-information-to-grep-params cand)))
(consult--marker-from-line-column
(funcall (or open #'find-file) file)
line col)))))))