bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

etags -f /dev/stdout enhancement request


From: Lyndon Nerenberg {VE6BBM}
Subject: etags -f /dev/stdout enhancement request
Date: Wed, 01 Jan 2003 18:08:38 -0700

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]