Function: tramp-suppress-remote-file-name-inhibit-cache

tramp-suppress-remote-file-name-inhibit-cache is a byte-compiled function defined in tramp-cache.el.gz.

Signature

(tramp-suppress-remote-file-name-inhibit-cache)

Documentation

Weaken remote-file-name-inhibit-cache.

This is meant to be let-bound for code over many cache operations, like in large directories.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-cache.el.gz
(defsubst tramp-suppress-remote-file-name-inhibit-cache ()
  "Weaken `remote-file-name-inhibit-cache'.
This is meant to be let-bound for code over many cache operations, like
in large directories."
  ;; If `remote-file-name-inhibit-cache' is already `nil', keep it.
  (cond
   (;; A timestamp.  Keep it.
    (consp remote-file-name-inhibit-cache) remote-file-name-inhibit-cache)
   (;; A number of seconds.  Set a timestamp with the difference.
    (numberp remote-file-name-inhibit-cache)
    (time-subtract nil remote-file-name-inhibit-cache))
   (;; Cache is disabled.  Set a timestamp from now on.
    t (current-time))))