[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-tag and partial completion mode -- Francisco, urgent!
From: |
Francesco Potorti` |
Subject: |
Re: find-tag and partial completion mode -- Francisco, urgent! |
Date: |
Fri, 04 May 2007 15:14:40 +0200 |
>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.