From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: shell-command causes problems with absolute/relative paths in TAGS Date: Fri, 06 Jan 2012 13:34:39 +0200 Message-ID: <83r4zdnjxs.fsf@gnu.org> References: "2 Jan 2012 10:26:08 -0800" <20120102223315.3E60F1810C9@neo.msri.org> <408087A3D7BE475B884C0F93CE2298C7@us.oracle.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1325849818 28135 80.91.229.12 (6 Jan 2012 11:36:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2012 11:36:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 06 12:36:54 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rj86Q-0000ju-HW for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jan 2012 12:36:54 +0100 Original-Received: from localhost ([::1]:41964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj86P-0005fh-QP for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jan 2012 06:36:53 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj86K-0005fc-V4 for help-gnu-emacs@gnu.org; Fri, 06 Jan 2012 06:36:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rj86K-0005gg-3C for help-gnu-emacs@gnu.org; Fri, 06 Jan 2012 06:36:48 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj86J-0005gY-Pz for help-gnu-emacs@gnu.org; Fri, 06 Jan 2012 06:36:48 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LXD00000K3CM800@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 06 Jan 2012 13:36:41 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.16.185]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXD00LMHK9561S0@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 06 Jan 2012 13:36:41 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83369 Archived-At: > From: "David Chappaz" > Date: Wed, 4 Jan 2012 16:05:13 -0000 > > Now, I generate my TAGS file from a plain windows shell, with the following > command: > > more filelist.txt | ctags -e -L - > > This works fine, and, as expected, the paths to the source files in the TAGS > file are relative, so the entire "test" folder and the TAGS file can be > moved to a different location. > > I'm developing a small emacs package to provide some sort of IDE. So now I'm > trying to do the same from within emacs. If I do: > > M-x shell-command > more filelist.txt | ctags -e -L - > > ...then the result is different, and now paths in the TAGS file become > absolute. Even using the explicit option --tag-relative=yes does not change > anything. FWIW, I cannot reproduce this on MS-Windows with Emacs 23.3. I don't have Exuberant CTags, but using the etags program provided with Emacs. I get relative file names with either method. Can you reproduce the problem in "emacs -Q"? If not, there's some customization of yours that causes this, or maybe it is a problem with Exuberant on Windows.