From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: tags with subdirectories? Date: Fri, 16 Sep 2005 13:05:34 +0300 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1126865565 11280 80.91.229.2 (16 Sep 2005 10:12:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2005 10:12:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 16 12:12:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EGDCr-0004Ey-Fr for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Sep 2005 12:12:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGDCq-0000lx-RI for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Sep 2005 06:12:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EGD6N-0006sx-I8 for help-gnu-emacs@gnu.org; Fri, 16 Sep 2005 06:05:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EGD6I-0006rd-DQ for help-gnu-emacs@gnu.org; Fri, 16 Sep 2005 06:05:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGD67-0006Jl-RN for help-gnu-emacs@gnu.org; Fri, 16 Sep 2005 06:05:36 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EGD67-000454-4o for help-gnu-emacs@gnu.org; Fri, 16 Sep 2005 06:05:35 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-166-73.inter.net.il [84.228.166.73]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CKG29202 (AUTH halo1); Fri, 16 Sep 2005 13:05:32 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Sam Steingold on Thu, 15 Sep 2005 12:52:37 -0400) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29488 Archived-At: > From: Sam Steingold > 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 ;-)