Function: consult--with-project-f
consult--with-project-f is a byte-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 ~/.emacs.d/elpa/consult-20260926.910/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)))