Function: project--value-in-dir
project--value-in-dir is a byte-compiled function defined in
project.el.gz.
Signature
(project--value-in-dir VAR DIR TIMEOUT)
Documentation
Look up variable VAR's value in DIR, with cache duration TIMEOUT.
If TIMEOUT is nil, the cache is not invalidated.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(defun project--value-in-dir (var dir timeout)
"Look up variable VAR's value in DIR, with cache duration TIMEOUT.
If TIMEOUT is nil, the cache is not invalidated."
(alist-get
var
(and
enable-dir-local-variables
(let ((cached (project--get-cached dir 'project-vc-dir-locals timeout)))
(if (eq cached 'none)
nil
(or cached
(let ((res (project--read-dir-locals dir)))
(project--set-cached dir 'project-vc-dir-locals (or res 'none))
res)))))
(default-value var)))