unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: thierry.volpiatto@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: way to get the list for all C/C++ related source files recursively?
Date: Fri, 03 Apr 2009 14:10:46 +0200	[thread overview]
Message-ID: <87k562szsp.fsf@tux.homenetwork> (raw)
In-Reply-To: 6b243eef-7cc4-49d5-9314-f4967a406be3@v1g2000prd.googlegroups.com

Hi,
Kiwon Um <um.kiwon@gmail.com> 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





  reply	other threads:[~2009-04-03 12:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-03 10:46 way to get the list for all C/C++ related source files recursively? Kiwon Um
2009-04-03 12:10 ` thierry.volpiatto [this message]
     [not found] ` <mailman.4531.1238761076.31690.help-gnu-emacs@gnu.org>
2009-04-03 12:43   ` Kiwon Um

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k562szsp.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).