From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: Managing lots of source files (e.g. subroutines and functions) Date: Tue, 27 Jan 2009 11:01:59 +0100 Organization: Anevia SAS Message-ID: <7cocxtkqy0.fsf@pbourguignon.anevia.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233052966 17894 80.91.229.12 (27 Jan 2009 10:42:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 10:42:46 +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 11:43:59 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 1LRlQ8-0004Y9-0k for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 11:43:52 +0100 Original-Received: from localhost ([127.0.0.1]:50291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRlOq-0007zK-0P for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 05:42:32 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp17-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:ZjU1OTA0NWI4ZmVhYjBiM2E4Y2E0ZTY1ODhmN2NjNzYwZTBiMzAxNA== Original-Lines: 34 Original-NNTP-Posting-Date: 27 Jan 2009 11:01:59 MET Original-NNTP-Posting-Host: 88.170.236.224 Original-X-Trace: 1233050519 news-2.free.fr 20680 88.170.236.224:33872 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:166370 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:61691 Archived-At: 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 {} 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. -- __Pascal Bourguignon__