Function: file-cache-add-directory-list
file-cache-add-directory-list is an autoloaded, interactive and
byte-compiled function defined in filecache.el.gz.
Signature
(file-cache-add-directory-list DIRECTORIES &optional REGEXP)
Documentation
Add DIRECTORIES (a list of directory names) to the file cache.
If called interactively, read the directory names one by one. If the optional REGEXP argument is non-nil, only files which match it will be added to the cache. Note that the REGEXP is applied to the files in each directory, not to the directory list itself.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/filecache.el.gz
;;;###autoload
(defun file-cache-add-directory-list (directories &optional regexp)
"Add DIRECTORIES (a list of directory names) to the file cache.
If called interactively, read the directory names one by one.
If the optional REGEXP argument is non-nil, only files which match it
will be added to the cache. Note that the REGEXP is applied to the
files in each directory, not to the directory list itself."
(interactive (list (file-cache--read-list nil "Add")))
(dolist (dir directories)
(file-cache-add-directory dir regexp))
(let ((n (length directories)))
(message "Filecache: cached file names from %d director%s."
n (if (= n 1) "y" "ies"))))