* autoloads for commands in (info "(emacs)File Name Cache")
@ 2006-09-08 18:13 Reiner Steib
2006-09-10 16:27 ` Reiner Steib
0 siblings, 1 reply; 2+ messages in thread
From: Reiner Steib @ 2006-09-08 18:13 UTC (permalink / raw)
Cc: Andreas Roehler
Hi,
Andreas Roehler <andreas.roehler@online.de> pointed out in
de.comp.editoren that `file-cache-add-directory' isn't autoloaded,
despite for being described in the manual:
,----[ (info "(emacs)File Name Cache") ]
| `M-x file-cache-add-directory <RET> DIRECTORY <RET>'
| Add each file name in DIRECTORY to the file name cache.
`----
IIUC (I didn't use file cache yet), all `file-cache-add-*' commands
should have an autoload. May I install this change?
2006-09-08 Reiner Steib <Reiner.Steib@gmx.de>
* filecache.el (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.
--8<---------------cut here---------------start------------->8---
--- filecache.el 6 Feb 2006 14:33:33 -0000 1.27
+++ filecache.el 8 Sep 2006 18:11:09 -0000
@@ -266,6 +266,7 @@
;; 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 @@
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 @@
(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 @@
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 @@
"-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)
(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
--8<---------------cut here---------------end--------------->8---
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: autoloads for commands in (info "(emacs)File Name Cache")
2006-09-08 18:13 autoloads for commands in (info "(emacs)File Name Cache") Reiner Steib
@ 2006-09-10 16:27 ` Reiner Steib
0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2006-09-10 16:27 UTC (permalink / raw)
On Fri, Sep 08 2006, Reiner Steib wrote:
> 2006-09-08 Reiner Steib <Reiner.Steib@gmx.de>
>
> * filecache.el (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.
Installed (on Richards request).
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-10 16:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-08 18:13 autoloads for commands in (info "(emacs)File Name Cache") Reiner Steib
2006-09-10 16:27 ` Reiner Steib
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).