From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: help with tags Date: Wed, 30 Jul 2003 17:11:55 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <844r146ock.fsf@slowfox.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1059579436 5937 80.91.224.249 (30 Jul 2003 15:37:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2003 15:37:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 30 17:16:27 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19hsgh-0007Qx-00 for ; Wed, 30 Jul 2003 17:16:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19hsft-0000Uy-Rl for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Jul 2003 11:15:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!fu-berlin.de!uni-berlin.de!p508775ae.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: p508775ae.dip.t-dialin.net (80.135.117.174) Original-X-Trace: news.uni-berlin.de 1059577915 22749875 80.135.117.174 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:JbsrLk6zOAxkzc0EGsbjSE6lJCk= Original-Xref: shelby.stanford.edu gnu.emacs.help:115564 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11482 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11482 "Javier Oviedo" writes: > Is there some utility that will let me automatically create this kind of > tag/project system given some path? Ideally it would support the following > functionality: > > 1. Given a root dir, it would add all sub-directories(and files within) to > this project. > 2. It would auto-update tags tables when/if a file is modified. > > I'm not sure if this is asking too much, but please let me know if there is > anything that performs some or all of these features. Thanks in advance! I think you have to do it manually, but make is your friend. rm TAGS; touch TAGS find . -name '*.[hc]' -print | xargs etags -a These commands add all *.h and *.c files to the TAGS file. You need to rerun them whenever something big has changed. So you could just add these commands to your normal build process, for instance. After all, if something big has changed, you're going to build the program anyway to check if it still works... Note that small modifications are not a problem -- M-. is smart enough to look around if the position information in TAGS is slightly off. You might also like the Emacs Code Browser and the Semantic Bovinator. The latter has some code parsers which give you tags-like functionality, and the former provides a GUI. Also, see M-x speedbar RET and also M-x imenu RET. I use M-x imenu RET a lot to jump around in the same file. -- ~/.signature