From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: edgardenny@comcast.net (Edgar Denny) Newsgroups: gmane.emacs.help Subject: Re: produce tags-file for several directories with etags Date: 5 Oct 2004 13:15:04 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1d6c408e.0410051215.470dffdd@posting.google.com> References: <87ekkd8ya7.fsf@rechner1.ddorf.de> <87ekkdtmmb.fsf@penguin.brutt.org> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1097007517 25846 80.91.229.6 (5 Oct 2004 20:18:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Oct 2004 20:18:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 05 22:18:25 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CEvlQ-0006UI-00 for ; Tue, 05 Oct 2004 22:18:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CEvs5-0000MB-C9 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Oct 2004 16:25:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 159.127.66.112 Original-X-Trace: posting.google.com 1097007305 14129 127.0.0.1 (5 Oct 2004 20:15:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 5 Oct 2004 20:15:05 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:125709 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21070 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21070 Benjamin Rutt wrote in message news:<87ekkdtmmb.fsf@penguin.brutt.org>... > Fabian Braennstroem 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 -"))