help-global
[Top][All Lists]
Advanced

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

Re: Using global with different directories


From: Julien Gilles
Subject: Re: Using global with different directories
Date: 07 Dec 2000 12:46:36 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands)

Shigio Yamaguchi <address@hidden> writes:

> > % cd /home/gilles/XXX
> > % mkdir /tmp/YYY
> > % (cd /usr/local/YYY; gtags /tmp/YYY)
> > % setenv GTAGSLIBPATH /tmp/YYY
> > % global something_in_YYY
> >  ../../../tmp/YYY/something.h
> > 
> > But if something_in_YYY is found also in /home/gilles/XXX/GTAGS, the
> > ../../../tmp/YYY/... does not appear in the output.
> > 
> > It would be nice to have an option to consider different G* files, and
> >  use all of them.
> 
> OK. I'll implement it.
> How about like this:
> 
> % printenv GTAGSLIBPATH
> /usr/lib:/usr/local/lib
> % global -x strlen
> strlen                99 strlen.c     ...
> % global -x --through strlen
> strlen                99 strlen.c     ...
> strlen                77 ../../usr/lib/strlen.c
> strlen                55 ../../usr/local/lib/strlen.c
> %
> 
> The 'through' means going through GTAGSLIBPATH.

Exactly what I wanted. Thank you very much.

Just one more thing : 
If I use `gtags /tmp/gtagsdb`, global gives path like
"../../../tmp/gtagsdb/YYY/include/file.h"

It would be nice to use absolute path in a such case (eg when GTAGS is
not in the root) and display "/usr/YYY/include/file.h". 
Ok, I can use a symbolic link, so it is not very annoying.

-- 
Julien Gilles.



reply via email to

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