From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francesco Potorti` Newsgroups: gmane.emacs.devel Subject: Re: etags -f /dev/stdout enhancement request Date: Tue, 07 Jan 2003 13:40:56 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041967576 29940 80.91.224.249 (7 Jan 2003 19:26:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 Jan 2003 19:26:16 +0000 (UTC) Cc: Emacs developers Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18VzKG-0007cv-00 for ; Tue, 07 Jan 2003 20:23:48 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18VzOx-0002Jl-00 for ; Tue, 07 Jan 2003 20:28:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Vz3T-00032v-01 for emacs-devel@quimby.gnus.org; Tue, 07 Jan 2003 14:06:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Vtix-0003pk-00 for emacs-devel@gnu.org; Tue, 07 Jan 2003 08:24:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18VthT-0001jo-00 for emacs-devel@gnu.org; Tue, 07 Jan 2003 08:24:44 -0500 Original-Received: from pot.cnuce.cnr.it ([146.48.83.182]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Vt5W-0004Zl-00 for emacs-devel@gnu.org; Tue, 07 Jan 2003 07:44:11 -0500 Original-Received: from pot by pot.cnuce.cnr.it with local (Exim 3.36 #1 (Debian)) id 18Vt2O-0002Ww-00; Tue, 07 Jan 2003 13:40:56 +0100 Original-To: Lyndon Nerenberg {VE6BBM} In-reply-to: "lyndon@orthanc.ab.ca"'s message of Wed, 01 Jan 2003 18:08:38 -0700 Original-References: X-fingerprint: 4B2 6187 5C3 D6B1 2E31 7666 9DF 2DC9 BE21 6115 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10531 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10531 Lyndon, thank for your bug report. >etags treats "-f -" as a special case in that the pathname of the >source file is not made relative to the location of the tags file. >Specifying "-f /dev/stdout" defeats this check, resulting in bogus >source file pathnames in the tags file. Yes, etags creates relative file names in tag files if the names of the tagged files on the command line are relative names. Otherwise it creates absolute file names. When it creates relative file names, they are made relative to the directory of the tag file, which does not make sense for /dev/stdout. Lyndon proposes to treat /dev/stdout the way it is done with "-", that is, making file names relative to the current directory. I see other possibilities, on which I ask for advice: 1. when the tag file is under the /dev directory, use the current directory rather than /dev for creating relative file names 2. do the above only for /dev/stdout (as proposed by Lyndon) 3. when the tag file is under the /dev directory, use the root directory rather than /dev, which means to always create absolute file names