[Top][All Lists]
[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,
address@hidden (Edgar Denny) writes:
> Benjamin Rutt <address@hidden> wrote in message news:<address@hidden>...
>> Fabian Braennstroem <address@hidden> 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