Function: consult-eglot-embark-export-grep
consult-eglot-embark-export-grep is a natively compiled function
defined in consult-eglot-embark.el.
Signature
(consult-eglot-embark-export-grep CANDIDATES)
Documentation
Exporter for a consult-eglot session to a grep buffer.
CANDIDATES is the collection of completion candidates to include int he grep buffer.
Source Code
;; Defined in /nix/store/lqv3gbiaac7mfhwjvrkr7l56gm15is3y-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-eglot-embark-20250831.925/consult-eglot-embark.el
;;;###autoload
(defun consult-eglot-embark-export-grep (candidates)
"Exporter for a `consult-eglot' session to a grep buffer.
CANDIDATES is the collection of completion candidates to include int he grep
buffer."
(setq candidates (mapcar (apply-partially
#'get-text-property
0 'consult--candidate)
candidates))
(let ((lines nil))
(dolist (symbol-info candidates)
(cl-destructuring-bind (file line _)
(consult-eglot--symbol-information-to-grep-params symbol-info)
(push (concat file
":" (number-to-string line)
;; ":" (number-to-string column)
": "
(eglot--dbind ((SymbolInformation) name) symbol-info
name))
lines)))
(setq lines (nreverse lines))
(embark-consult-export-grep lines)))