Variable: project-vc-cache-timeout

project-vc-cache-timeout is a variable defined in project.el.gz.

Value

((file-remote-p) (always . 2))

Documentation

Number of seconds to cache a value in VC-aware project methods.

It can be nil, a number, or an alist where the key is a predicate, and the value is a number. A predicate function should take a directory string and if it returns non-nil, the corresponding value will be used as the timeout. Set to nil to disable time-based expiration.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(defvar project-vc-cache-timeout '((file-remote-p . nil)
                                   (always . 2))
  "Number of seconds to cache a value in VC-aware project methods.
It can be nil, a number, or an alist where
the key is a predicate, and the value is a number.
A predicate function should take a directory string and if it returns
non-nil, the corresponding value will be used as the timeout.
Set to nil to disable time-based expiration.")