From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kiwon Um Newsgroups: gmane.emacs.help Subject: Re: way to get the list for all C/C++ related source files recursively? Date: Fri, 3 Apr 2009 05:43:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1bd2b770-fd33-49ac-96e5-4c8b28670dc4@b7g2000pre.googlegroups.com> References: <6b243eef-7cc4-49d5-9314-f4967a406be3@v1g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238766645 19170 80.91.229.12 (3 Apr 2009 13:50:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 13:50:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 15:52:02 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LpjoN-0001oA-0C for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 15:51:59 +0200 Original-Received: from localhost ([127.0.0.1]:59795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lpjmz-0006eH-5H for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 09:50:33 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b7g2000pre.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 163.152.71.53 Original-X-Trace: posting.google.com 1238762610 605 127.0.0.1 (3 Apr 2009 12:43:30 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 3 Apr 2009 12:43:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b7g2000pre.googlegroups.com; posting-host=163.152.71.53; posting-account=6v9_LQoAAACIrmHTUxB_-iw-j364OtYr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; ko-KR; rv:1.9.0.7) Gecko/2009022800 SUSE/3.0.7-1.1 Firefox/3.0.7,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168173 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63456 Archived-At: On 4=BF=F93=C0=CF, =BF=C0=C8=C49=BD=C310=BA=D0, thierry.volpia...@gmail.com= wrote: > Hi, > > Kiwon Um 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 Great!!! That's really what I wanted! Thanks! :)