help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: produce tags-file for several directories with etags


From: Fabian Braennstroem
Subject: Re: produce tags-file for several directories with etags
Date: Wed, 06 Oct 2004 07:42:30 +0200
User-agent: Gnus/5.110001 (No Gnus v0.1) Emacs/21.3 (gnu/linux)

Hello,

edgardenny@comcast.net (Edgar Denny) writes:

> 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 -"))

Thanks to all!
I used the last 'find. -type f ...' in the shell... works fine :-)

Greetings!
-- 
Fabian Braennstroem
Duesseldorf/Berlin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]