Function: project-nix-store-try
project-nix-store-try is a natively compiled function defined in
project-nix-store.el.
Signature
(project-nix-store-try DIR)
Documentation
Return a store project instance of DIR.
DIR should be a store path or a child dir of a store path. Otherwise, return nil.
See project-root for store path definition.
Source Code
;; Defined in /nix/store/4avp517pkzrkdwhbzvqxvwaibbch12wf-emacs-packages-deps/share/emacs/site-lisp/project-nix-store.el
;;;###autoload
(defun project-nix-store-try (dir)
"Return a store project instance of DIR.
DIR should be a store path or a child dir of a store path.
Otherwise, return nil.
See `project-root' for store path definition."
(let ((cached-project (with-memoization
(gethash dir project-nix-store--cached-projects)
(or (project-nix-store--try-without-cache dir)
;; `with-memoization' can't distinguish nil and "no value yet".
;; Use symbol `not-found' to represent nil.
'not-found))))
(unless (eq cached-project 'not-found)
cached-project)))