From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Managing lots of source files (e.g. subroutines and functions) Date: Tue, 27 Jan 2009 16:05:23 +0100 Message-ID: <87wscgpz64.fsf@tux.homenetwork> References: <7cocxtkqy0.fsf@pbourguignon.anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233069174 8574 80.91.229.12 (27 Jan 2009 15:12:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 15:12:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 16:14:08 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 1LRpdL-0001SS-22 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 16:13:47 +0100 Original-Received: from localhost ([127.0.0.1]:53569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRpc3-0004jI-3M for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 10:12:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRpbi-0004j1-Qm for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 10:12:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRpbh-0004iA-HY for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 10:12:06 -0500 Original-Received: from [199.232.76.173] (port=50566 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRpbh-0004ht-DF for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 10:12:05 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:41794 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRpbg-00061q-Q6 for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 10:12:05 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LRpbb-0000HW-EB for help-gnu-emacs@gnu.org; Tue, 27 Jan 2009 15:11:59 +0000 Original-Received: from 137.77.197-77.rev.gaoland.net ([77.197.77.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2009 15:11:59 +0000 Original-Received: from thierry.volpiatto by 137.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2009 15:11:59 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 137.77.197-77.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:77mPht6ECIDngggraQryrUN4nfg= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:61701 Archived-At: pjb@informatimago.com (Pascal J. Bourguignon) writes: > Sebastian Schubert writes: > >> Hi, >> >> I recently started to work an large project which is written in >> Fortran90. It includes a lot of different source files included in just >> one folder. Is there a way to make emacs scan this folder and create >> some kind of procedure or subroutine or function list? I would like to >> be able to directly move to the file where e.g. the function I'm >> interested in is written. >> >> In addition a list of variables would be nice too. >> >> Any idea? > > > > The basic feature can be provided by etag(1) > > First, you build a TAGS file: > > find $source_directory -name \*.f -print0 | xargs -0 etags -a -o $source_directory/TAGS {} NOTE: If you use traverslisp.el, you can build a TAGS file easily from the root of project with `traverse-build-tags-in-project' > then you can use it for example, by typing M-. on a function name. > The first time it'll ask what TAGS file you want (specify the one you > just created). Then it will jump to the source of the function. > > > > Otherwise, you could use cedet (http://cedet.sourceforge.net) but it > seems there's no Fortran parser yet. You could write one. -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France