|
| From: | thierry . volpiatto |
| Subject: | Re: way to get the list for all C/C++ related source files recursively? |
| Date: | Fri, 03 Apr 2009 14:10:46 +0200 |
| User-agent: | Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.92 (gnu/linux) |
Hi,
Kiwon Um <address@hidden> writes:
> Hello.
> Is there any predefined function to get the list for all C/C++ related
> source files recursively?
> using like:
> (source-files-recursively "/home/my/project/src/" "[.]*\.[ch]p?p?")
Use traverselisp.el.
You can get it on freehg or on emacswiki:
http://freehg.org/u/thiedlecques/traverselisp/
http://www.emacswiki.org/cgi-bin/emacs/traverselisp.el
Then this function do what you want:
(traverse-list-files-in-tree "~/documentation" nil nil '(".pdf$" ".html$"))
You can put what you want in the list on checkonly files.
You can setup a list of files to ignore (`traverse-ignore-files')
You can setup a list of dirs/subdirs to ignore (`traverse-ignore-dirs')
If you want to write your own function instead of this one use
`traverse-walk-directory'.
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
| [Prev in Thread] | Current Thread | [Next in Thread] |