Function: project-root-find-file
project-root-find-file is an autoloaded, interactive and byte-compiled
function defined in project.el.gz.
Signature
(project-root-find-file FILENAME)
Documentation
Edit file FILENAME.
Interactively, prompt for FILENAME, defaulting to the root directory of the current project.
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
;;;###autoload
(defun project-root-find-file (filename)
"Edit file FILENAME.
Interactively, prompt for FILENAME, defaulting to the root directory of
the current project."
(declare (interactive-only find-file))
(interactive (list (read-file-name "Find file in root: "
(project-root (project-current t)) nil
(confirm-nonexistent-file-or-buffer))))
(find-file filename t))