[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: produce tags-file for several directories with etags
From: |
Edgar Denny |
Subject: |
Re: produce tags-file for several directories with etags |
Date: |
5 Oct 2004 13:15:04 -0700 |
Benjamin Rutt <rutt.4+news@osu.edu> wrote in message
news:<87ekkdtmmb.fsf@penguin.brutt.org>...
> Fabian Braennstroem <f.braennstroem@gmx.de> writes:
>
> > Hello,
> >
> > I want to produce a tags-file for a code which is spread over several
> > directories. I am not able to find any option for etags to handle this. Just
> > with the simple 'etags *' I get following for all directories:
> >
> > 'directory': it is not a regular file.
> >
> > Does anybody have an idea?
>
> I see from the headers that you are on linux. Then you certainly have
> the 'find' command. Try the following command from the root directory
> of your source tree:
>
> etags `find . -type f`
This is a function that I use to create a tags file for all files in
the current directory and all its sub-directories:
(defun create-tags-here ()
"Create tags file with current directory as root."
(interactive)
(shell-command "find . -type f -name *.[hC] | etags -"))