Variable: tramp-completion-reread-directory-timeout

tramp-completion-reread-directory-timeout is a customizable variable defined in tramp.el.gz.

This variable is obsolete since 27.2; use remote-file-name-inhibit-cache instead.

Value

10

Documentation

Defines seconds since last remote command before rereading a directory.

A remote directory might have changed its contents. In order to make it visible during file name completion in the minibuffer, Tramp flushes its cache and rereads the directory contents when more than tramp-completion-reread-directory-timeout seconds have been gone since last remote command execution. A value of t would require an immediate reread during filename completion, nil means to use always cached values for the directory contents.

Probably introduced at or before Emacs version 27.2.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defcustom tramp-completion-reread-directory-timeout 10
  "Defines seconds since last remote command before rereading a directory.
A remote directory might have changed its contents.  In order to
make it visible during file name completion in the minibuffer,
Tramp flushes its cache and rereads the directory contents when
more than `tramp-completion-reread-directory-timeout' seconds
have been gone since last remote command execution.  A value of t
would require an immediate reread during filename completion, nil
means to use always cached values for the directory contents."
  :type '(choice (const nil) (const t) integer))