Kevin Brosius on Mon, 10 Dec 2001 17:20:22 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] etags change my life


Jeff Abrahamson wrote:
> 
> On Mon, Dec 10, 2001 at 10:31:09AM -0500, Kevin Brosius wrote:
> > Jeff Abrahamson wrote:
> > >
> > > I've been working with emacs for years and never realized how cool
> > > etags are. Just in case you have not seen the light, let me
> > > evangelize:
> > >
> > >     In the shell, go to your source directory and type
> > >
> > >         etags *c *h
> > >
> > >     or grab a whole hierarchy with find. Either way, you'll get a new
> > >     file called TAGS.
> > >
> > >     Now in emacs, type M-x . and off you go to the definition of the
> > >     thing you ask (default what's under the cursor). Also available is
> > >     M-x tags-search (search for use of something), with M-, continuing
> > >     the search. The search crosses all tagged files.
> > >
> > >     And there's also M-x tags-apropos, apropos on the names in your
> > >     project.
> > >
> >
> > Depending on the version of ctags/etags, you can also do
> >
> > ctags -e --recurse
> >
> > to generate emacs (xemacs here) tags.  You're right, they are great.  In
> > xemacs you can also use a tags hierarchy.  Say for example you have a
> > large source code tree, and you have a few files you work on locally.
> > You can list the local file's tag file first, then the large source tree
> > tag file and xemacs will search them in order, so it uses your
> > modifications first.  Then it 'falls through' to the primary source
> > tree.
> > (The command is setq tab-table-alist ...  Thanks Frank!)
> 
> Near as I can tell, this is the same as tags-table-list in GNU emacs.
> 

Yeah, very similar.  The xemacs version supports pattern matching on the
file name in addition to fall-thru, while the emacs version just falls
through if not found.

-- 
Kevin Brosius

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug