Function: consult--with-project-f
consult--with-project-f is a natively compiled function defined in
consult.el.
Signature
(consult--with-project-f FUN)
Documentation
Ensure that FUN is executed with a project root.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--with-project-f (fun)
"Ensure that FUN is executed with a project root."
(let ((consult-project-function
(let ((root (or (consult--project-root t) (user-error "No project found"))))
(lambda (_prompt) root))))
(funcall fun)))