On Thu, May 30, 2002 at 08:50:18AM +0800, henry wrote:
> Dear List:
>   I found this (as follows)on net
> 
>   The "etags" man page should be in the same place as the "emacs" man page.
> 
>   Quick command-line switch descriptions are also available.  For example,
>   "etags -H".
> 
> Could you tell me how to execute it ?

Execute what, exactly?

man etags will give you the etags man page if that's what you're asking. Or you
could just M-x man RET etags RET from within emacs.

As an example of etags use I have a script that runs every half hour as a cron
job:

#!/bin/sh
ETAGS_FILE=~/CommSecure/TAGS
rm $ETAGS_FILE
find . -name '*.py' | xargs etags -a -f $ETAGS_FILE

This generates tags for all python files in our repository, allowing me to use
M-. to jump from any function call to the definition of the function (provided
there are no name clashes, which actually happens pretty rarely). Should there
be a name clash, I can use C-u M-. to go the the next match. M-* jumps back up
the tag stack to your previous position.

Unfortunately, this becomes far less useful if you're dealing with OO code where
many of the method names are the same, but you can use M-. to find class
definitions as well (and module definitions in Python).

etags can generate tags for C, Objective C, C++, Java, Fortran, Ada,
Cobol, Erlang,  LaTeX, Emacs Lisp/Common   Lisp,   makefiles,   Pascal,
Perl, Postscript, Python, Prolog, Scheme and most assembler-like syntaxes. 

Hope this helps. Back to work.
-- 
Mark
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to