diff options
| author | Reiner Steib | 2006-09-10 16:26:31 +0000 |
|---|---|---|
| committer | Reiner Steib | 2006-09-10 16:26:31 +0000 |
| commit | 3b5e5e309bea103e63293fe0fe4f5c255ce04be2 (patch) | |
| tree | 302c5912ab8e383928ffb668a8bbc1b344f49b28 | |
| parent | 9844f06627c4ef00764e5dea389bb5a8e64713cf (diff) | |
| download | emacs-3b5e5e309bea103e63293fe0fe4f5c255ce04be2.tar.gz emacs-3b5e5e309bea103e63293fe0fe4f5c255ce04be2.zip | |
(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.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/filecache.el | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c9aa615145e..e09e492ad50 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2006-09-10 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 2 | |||
| 3 | * filecache.el (file-cache-add-directory) | ||
| 4 | (file-cache-add-directory-list, file-cache-add-file) | ||
| 5 | (file-cache-add-directory-using-find) | ||
| 6 | (file-cache-add-directory-using-locate) | ||
| 7 | (file-cache-add-directory-recursively): Add autoloads. | ||
| 8 | |||
| 1 | 2006-09-09 Richard Stallman <rms@gnu.org> | 9 | 2006-09-09 Richard Stallman <rms@gnu.org> |
| 2 | 10 | ||
| 3 | * textmodes/conf-mode.el (conf-space-mode): Use | 11 | * textmodes/conf-mode.el (conf-space-mode): Use |
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." | |||
| 266 | ;; Functions to add files to the cache | 266 | ;; Functions to add files to the cache |
| 267 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 267 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 268 | 268 | ||
| 269 | ;;;###autoload | ||
| 269 | (defun file-cache-add-directory (directory &optional regexp) | 270 | (defun file-cache-add-directory (directory &optional regexp) |
| 270 | "Add DIRECTORY to the file cache. | 271 | "Add DIRECTORY to the file cache. |
| 271 | If the optional REGEXP argument is non-nil, only files which match it will | 272 | If the optional REGEXP argument is non-nil, only files which match it will |
| @@ -291,6 +292,7 @@ be added to the cache." | |||
| 291 | dir-files) | 292 | dir-files) |
| 292 | (file-cache-add-file-list dir-files)))) | 293 | (file-cache-add-file-list dir-files)))) |
| 293 | 294 | ||
| 295 | ;;;###autoload | ||
| 294 | (defun file-cache-add-directory-list (directory-list &optional regexp) | 296 | (defun file-cache-add-directory-list (directory-list &optional regexp) |
| 295 | "Add DIRECTORY-LIST (a list of directory names) to the file cache. | 297 | "Add DIRECTORY-LIST (a list of directory names) to the file cache. |
| 296 | If the optional REGEXP argument is non-nil, only files which match it | 298 | 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." | |||
| 307 | (mapcar 'file-cache-add-file file-list)) | 309 | (mapcar 'file-cache-add-file file-list)) |
| 308 | 310 | ||
| 309 | ;; Workhorse function | 311 | ;; Workhorse function |
| 312 | |||
| 313 | ;;;###autoload | ||
| 310 | (defun file-cache-add-file (file) | 314 | (defun file-cache-add-file (file) |
| 311 | "Add FILE to the file cache." | 315 | "Add FILE to the file cache." |
| 312 | (interactive "fAdd File: ") | 316 | (interactive "fAdd File: ") |
| @@ -333,6 +337,7 @@ in each directory, not to the directory list itself." | |||
| 333 | file-cache-alist))) | 337 | file-cache-alist))) |
| 334 | ))) | 338 | ))) |
| 335 | 339 | ||
| 340 | ;;;###autoload | ||
| 336 | (defun file-cache-add-directory-using-find (directory) | 341 | (defun file-cache-add-directory-using-find (directory) |
| 337 | "Use the `find' command to add files to the file cache. | 342 | "Use the `find' command to add files to the file cache. |
| 338 | Find is run in DIRECTORY." | 343 | Find is run in DIRECTORY." |
| @@ -355,6 +360,7 @@ Find is run in DIRECTORY." | |||
| 355 | "-print") | 360 | "-print") |
| 356 | (file-cache-add-from-file-cache-buffer))) | 361 | (file-cache-add-from-file-cache-buffer))) |
| 357 | 362 | ||
| 363 | ;;;###autoload | ||
| 358 | (defun file-cache-add-directory-using-locate (string) | 364 | (defun file-cache-add-directory-using-locate (string) |
| 359 | "Use the `locate' command to add files to the file cache. | 365 | "Use the `locate' command to add files to the file cache. |
| 360 | STRING is passed as an argument to the locate command." | 366 | STRING is passed as an argument to the locate command." |
| @@ -366,6 +372,7 @@ STRING is passed as an argument to the locate command." | |||
| 366 | string) | 372 | string) |
| 367 | (file-cache-add-from-file-cache-buffer)) | 373 | (file-cache-add-from-file-cache-buffer)) |
| 368 | 374 | ||
| 375 | ;;;###autoload | ||
| 369 | (defun file-cache-add-directory-recursively (dir &optional regexp) | 376 | (defun file-cache-add-directory-recursively (dir &optional regexp) |
| 370 | "Adds DIR and any subdirectories to the file-cache. | 377 | "Adds DIR and any subdirectories to the file-cache. |
| 371 | This function does not use any external programs | 378 | This function does not use any external programs |