[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tags with subdirectories?
From: |
Eli Zaretskii |
Subject: |
Re: tags with subdirectories? |
Date: |
Fri, 16 Sep 2005 13:05:34 +0300 |
> From: Sam Steingold <sds@gnu.org>
> Date: Thu, 15 Sep 2005 12:52:37 -0400
>
> what if I have a _huge_ project with many many directories each sporting
> its own TAGS file.
> how do I tell emacs to search all subdirectories for TAGS files?
> I could, of course run call-process on "find . -name TAGS", but this
> strikes me as ugly.
>
> suggestions?
I take it that doing a "M-x visit-tag-table" for each TAGS file is not
an option, and neither is to create another TAGS file which would just
include the real TAGS files (using the --include option to `etags'),
right?
In that case, I'd suggest to customize the value of `tags-table-list'
to include the names of all the directories where you have your TAGS
files. This could be done with, e.g., `shell-command-to-string' that
runs the command "find . -type d", followed by processing the
resulting string into a list.
Yet another solution is to stop having TAGS file in each subdirectory
of your project (why is that a good idea, anyway?), and instead have
only one ;-)