From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francesco Potorti` Newsgroups: gmane.emacs.devel Subject: Re: find-tag and partial completion mode -- Francisco, urgent! Date: Fri, 04 May 2007 15:14:40 +0200 Message-ID: References: <15435305.691161178137607047.JavaMail.www@wwinf4106> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1178284534 20862 80.91.229.12 (4 May 2007 13:15:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 May 2007 13:15:34 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: alinsoar@voila.fr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 04 15:15:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HjxdC-0001o1-B8 for ged-emacs-devel@m.gmane.org; Fri, 04 May 2007 15:15:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hjxjp-0002Ys-HU for ged-emacs-devel@m.gmane.org; Fri, 04 May 2007 09:22:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HjxjF-0002O0-RA for emacs-devel@gnu.org; Fri, 04 May 2007 09:21:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HjxjE-0002Mz-69 for emacs-devel@gnu.org; Fri, 04 May 2007 09:21:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjxjD-0002Mu-Uk for emacs-devel@gnu.org; Fri, 04 May 2007 09:21:43 -0400 Original-Received: from mx2.isti.cnr.it ([194.119.192.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HjxcZ-0004v1-SV for emacs-devel@gnu.org; Fri, 04 May 2007 09:14:52 -0400 Original-Received: from conversionlocal.isti.cnr.it by mx.isti.cnr.it (PMDF V6.3-x3 #31251) id <01MG6XTPTMHS9EDO3A@mx.isti.cnr.it> for emacs-devel@gnu.org; Fri, 04 May 2007 15:14:41 +0200 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by mx.isti.cnr.it (PMDF V6.3-x3 #31251) with ESMTPS id <01MG6XTPMLI09ATVUY@mx.isti.cnr.it>; Fri, 04 May 2007 15:14:40 +0200 Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.63) (envelope-from ) id 1HjxcO-0005NL-Jq; Fri, 04 May 2007 15:14:40 +0200 In-reply-to: <15435305.691161178137607047.JavaMail.www@wwinf4106> X-INSM-ip-source: 146.48.81.102 Auth Optional-NoAuth X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-detected-kernel: OpenVMS 7.2 (Multinet 4.3-4.4 stack) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:70541 Archived-At: >So the only problem is that etags does not work if we work to a >sym-link to the TAGS file. We must use the path to the original TAGS >file. The problem is that the TAGS file is built using relative file names (the usual way to do it), like this: etags *.[ch] Consequently, if you make a link to TAGS from a different dir, the relative names break. Solutions have been mentioned: - create one more TAGS file in your preferred dir and include the src/TAGS file with option -i - create a TAGS file using absolute file names However, in principle one could change etags.el so that, when the TAGS file is in fact a symbolic link, it resolves relative file names with respect to the base directory of the file, rather than the link. I am not sure that this is in fact a good idea but, if it is, it should be eay to implement. So: either we implement the change to etags.el that I suggest above, or else I can add a couple of lines in the manual such as: Notice that, in the usual case of using relative file names, you should not use a symbolic link to a tags file in a different directory.