summaryrefslogtreecommitdiff
path: root/lisp/filecache.el
diff options
context:
space:
mode:
authorReiner Steib <Reiner.Steib@gmx.de>2006-09-10 16:26:31 +0000
committerReiner Steib <Reiner.Steib@gmx.de>2006-09-10 16:26:31 +0000
commit3b5e5e309bea103e63293fe0fe4f5c255ce04be2 (patch)
tree302c5912ab8e383928ffb668a8bbc1b344f49b28 /lisp/filecache.el
parent9844f06627c4ef00764e5dea389bb5a8e64713cf (diff)
downloademacs-3b5e5e309bea103e63293fe0fe4f5c255ce04be2.tar.gz
(file-cache-add-directory)
(file-cache-add-directory-list, file-cache-add-file) (file-cache-add-directory-using-find) (file-cache-add-directory-using-locate) (file-cache-add-directory-recursively): Add autoloads.
Diffstat (limited to 'lisp/filecache.el')
-rw-r--r--lisp/filecache.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/filecache.el b/lisp/filecache.el
index c0e9e9e5f5d..48ca2206386 100644
--- a/lisp/filecache.el
+++ b/lisp/filecache.el
@@ -266,6 +266,7 @@ Defaults to nil on DOS and Windows, and t on other systems."
;; Functions to add files to the cache
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;###autoload
(defun file-cache-add-directory (directory &optional regexp)
"Add DIRECTORY to the file cache.
If the optional REGEXP argument is non-nil, only files which match it will
@@ -291,6 +292,7 @@ be added to the cache."
dir-files)
(file-cache-add-file-list dir-files))))
+;;;###autoload
(defun file-cache-add-directory-list (directory-list &optional regexp)
"Add DIRECTORY-LIST (a list of directory names) to the file cache.
If the optional REGEXP argument is non-nil, only files which match it
@@ -307,6 +309,8 @@ in each directory, not to the directory list itself."
(mapcar 'file-cache-add-file file-list))
;; Workhorse function
+
+;;;###autoload
(defun file-cache-add-file (file)
"Add FILE to the file cache."
(interactive "fAdd File: ")
@@ -333,6 +337,7 @@ in each directory, not to the directory list itself."
file-cache-alist)))
)))
+;;;###autoload
(defun file-cache-add-directory-using-find (directory)
"Use the `find' command to add files to the file cache.
Find is run in DIRECTORY."
@@ -355,6 +360,7 @@ Find is run in DIRECTORY."
"-print")
(file-cache-add-from-file-cache-buffer)))
+;;;###autoload
(defun file-cache-add-directory-using-locate (string)
"Use the `locate' command to add files to the file cache.
STRING is passed as an argument to the locate command."
@@ -366,6 +372,7 @@ STRING is passed as an argument to the locate command."
string)
(file-cache-add-from-file-cache-buffer))
+;;;###autoload
(defun file-cache-add-directory-recursively (dir &optional regexp)
"Adds DIR and any subdirectories to the file-cache.
This function does not use any external programs