[plug] using etags with emacs
David Buddrige
buddrige at wasp.net.au
Tue Apr 8 10:58:49 WST 2003
Hi all,
I have two machines that I use. machine 1 has the following version of
etags:
bash-2.04$ etags --version
Exuberant Ctags 5.0.1, Copyright (C) 1996-2001 Darren Hiebert
Addresses: <darren at hiebert.com>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
bash-2.04$
Machine 2 has the following version of etags:
[buddrid at mit243linux ]$ etags --version
etags (GNU Emacs 21.2)
Copyright (C) 1999 Free Software Foundation, Inc. and Ken Arnold
This program is distributed under the same terms as Emacs
[buddrid at mit243linux ]$
Using etags on machine 1 is fairly straight foreward. I simply go to the
root directory of the source-code I want to tag, and type:
etags -R
which recursively builds up a TAGS file for the current directory and all
sub-directories. (In this case -R stands for recursive).
However, the -R switch on machine 2 (according to the man-page) stands for
--no-regex
I have been reading through the man page for machine 2's version of etags
but have not been able to determine how to make it work over the entire
source-code tree that I have. The only way to *sort-of* make it work is to
use the command: find . | grep "\.[CH]$" to build up a list of all
source-files and then pass that list of source files to the etags program;
*however*, the TAGS file it generates takes me to the wrong symbols when I
try to use it from within emacs - which makes it useless for all practical
purposes.
Has anyone used the etags command provided with emacs and knows how it
works? I've been messing around with the emacs version of the program
on-and-off for a while now but haven't been able to make it do anything
useful.
thanks heaps guys
David.
More information about the plug
mailing list