From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lyndon Nerenberg {VE6BBM} Newsgroups: gmane.emacs.bugs Subject: etags -f /dev/stdout enhancement request Date: Wed, 01 Jan 2003 18:08:38 -0700 Organization: The Frobozz Magic Homing Pigeon Company Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200301020108.h0218c1q033975@orthanc.ab.ca> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041469737 12852 80.91.224.249 (2 Jan 2003 01:08:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 2 Jan 2003 01:08:57 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Ttqx-0003LA-00 for ; Thu, 02 Jan 2003 02:08:55 +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 18Ttqy-0001uZ-04 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 01 Jan 2003 20:08:56 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Ttqr-0001sR-00 for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2003 20:08:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Ttqo-0001nh-00 for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2003 20:08:47 -0500 Original-Received: from 114.216-123-230-0.interbaun.com ([216.123.230.114] helo=orthanc.ab.ca) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Ttqo-0001kL-00 for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2003 20:08:46 -0500 Original-Received: from orthanc.ab.ca (localhost4 [127.0.0.1]) by orthanc.ab.ca (8.12.6/8.12.6) with ESMTP id h0218c1q033975 for ; Wed, 1 Jan 2003 18:08:38 -0700 (MST) (envelope-from lyndon@orthanc.ab.ca) Original-To: bug-gnu-emacs@gnu.org X-Mailer: mh-e 6.1+cvs; nmh 1.0.4; Emacs 21.2 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4130 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4130 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. Enclosed is a patch that causes "-f /dev/stdout" to be treated the same as "-f -" is. This diff is against the 21.2 released sources. =================================================================== RCS file: lib-src/etags.c,v retrieving revision 1.1 diff -u -r1.1 lib-src/etags.c --- lib-src/etags.c 2003/01/02 00:49:42 1.1 +++ lib-src/etags.c 2003/01/02 00:50:44 @@ -1094,6 +1094,10 @@ cwd = concat (oldcwd, "/", ""); free (oldcwd); } + if (streq (tagfile, "/dev/stdout")) + { + tagfile = "-"; + } if (streq (tagfile, "-")) tagfiledir = cwd; else