From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Sven Utcke Newsgroups: gmane.emacs.devel Subject: Re: Bug Report (Feature request?) etags (GNU Emacs 21.1) Date: Tue, 5 Mar 2002 14:11:54 +0100 (CET) Message-ID: <200203051311.g25DBs302046@kogs12.informatik.uni-hamburg.de> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: quimby2.netfonds.no 1015334342 22716 195.204.10.66 (5 Mar 2002 13:19:02 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 5 Mar 2002 13:19:02 GMT Cc: emacs-devel@gnu.org (Emacs developers) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16iEqL-0005uH-00 for ; Tue, 05 Mar 2002 14:19:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16iEjc-0007zr-00; Tue, 05 Mar 2002 08:12:04 -0500 Original-Received: from rzdspc1.informatik.uni-hamburg.de ([134.100.9.61]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16iEjW-0007zE-00; Tue, 05 Mar 2002 08:11:58 -0500 Original-Received: from kogs1.informatik.uni-hamburg.de (kogs1.informatik.uni-hamburg.de [134.100.12.111]) by rzdspc1.informatik.uni-hamburg.de (8.12.2/8.12.2) with ESMTP id g25DBst5005181; Tue, 5 Mar 2002 14:11:54 +0100 (CET) Original-Received: from kogs12.informatik.uni-hamburg.de (kogs12.informatik.uni-hamburg.de [134.100.12.122]) by kogs1.informatik.uni-hamburg.de (8.12.2/8.12.2) with ESMTP id g25DBsWd010698; Tue, 5 Mar 2002 14:11:54 +0100 (CET) Original-Received: (from utcke@localhost) by kogs12.informatik.uni-hamburg.de (8.10.1/8.10.1) id g25DBs302046; Tue, 5 Mar 2002 14:11:54 +0100 (CET) Original-To: pot@gnu.org (Francesco Potorti`) In-Reply-To: from "Francesco Potorti`" at Mar 05, 2002 01:15:29 PM X-Mailer: ELM [version 2.5 PL2] X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1741 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1741 Hello Francesco, > I made etags aware of the #line directives that can be found in > automatically generated sources, for example .y-->.c, or .web-->.[hc]. Great, thanks! Hmm. One problem though, although I'm not sure how to handle this: I create the tag-file using something like: find . -name "*.c" -exec etags -a -I -o /home/utcke/src/StreetSigns/TAGS {} \; probably not the most elegant way to do this (something featuring xargs would probably be preferred), but it works. Only: the TAGS file now contains entries like the following (I'm replacing the non-ascii characters with a look-alike ascii representation...) ^L Canny/Khoros/kedgelio.c,21 #define MIN(^?MIN^A1,0 ^L kedgelio.web,226 static char rcsid[^?597, boolean kread_edgels(^?54, [...] This is because the #line directives in Canny/Khoros/kedgelio.c read: #line 590 "kedgelio.web" But of course in the TAGS file it should read Canny/Khoros/kedgelio.web instead of kedgelio.web. Possible solutions: a) Get fweb to output absolute paths. b) Have etags prefix the filename from the #Line-directive with the current path. c) Something else? I'm not sure what would be the best thing to do here, as both a) and b) would prevent me from seperating the *.c from the *.web... Sven -- _ __ The Cognitive Systems Group | |/ /___ __ _ ___ University of Hamburg | '