all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: kai.grossjohann@gmx.net (Kai Großjohann)
Subject: Re: help with tags
Date: Wed, 30 Jul 2003 17:11:55 +0200	[thread overview]
Message-ID: <844r146ock.fsf@slowfox.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: bg8isd$2ri$1@home.itg.ti.com

"Javier Oviedo" <email_joviedo@yahoo.com> 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

  reply	other threads:[~2003-07-30 15:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-30 14:00 help with tags Javier Oviedo
2003-07-30 15:11 ` Kai Großjohann [this message]
2003-07-30 20:28   ` Javier Oviedo
2003-07-31 17:02     ` Kai Großjohann
2003-07-31  6:43   ` Eli Zaretskii
     [not found]   ` <mailman.754.1059630121.8231.help-gnu-emacs@gnu.org>
2003-08-01 14:00     ` Javier Oviedo
2003-08-01 15:41       ` Dan Katz
  -- strict thread matches above, loose matches on Subject: below --
2013-08-27 12:59 Help " Glen Stark

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

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

  git send-email \
    --in-reply-to=844r146ock.fsf@slowfox.is.informatik.uni-duisburg.de \
    --to=kai.grossjohann@gmx.net \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.