Function: project-nix-store--try-without-cache

project-nix-store--try-without-cache is a natively compiled function defined in project-nix-store.el.

Signature

(project-nix-store--try-without-cache DIR)

Documentation

Like project-nix-store-try, but do not use cache.

See project-nix-store-try for DIR and return value.

Source Code

;; Defined in /nix/store/4avp517pkzrkdwhbzvqxvwaibbch12wf-emacs-packages-deps/share/emacs/site-lisp/project-nix-store.el
(defun project-nix-store--try-without-cache (dir)
  "Like `project-nix-store-try', but do not use cache.
See `project-nix-store-try' for DIR and return value."
  (cl-loop for project-nix-store-dir in project-nix-store-dirs
           thereis
           (when (and (string-prefix-p project-nix-store-dir dir)
                      (not (string= dir project-nix-store-dir)))
             (cl-loop for project-root = dir then project-root-parent
                      for project-root-parent = (file-name-parent-directory project-root)
                      until (string= project-root-parent project-nix-store-dir)
                      finally return (list 'nix-store
                                           project-root
                                           (length project-nix-store-dir))))))