[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using global with different directories
From: |
Shigio Yamaguchi |
Subject: |
Re: Using global with different directories |
Date: |
Thu, 07 Dec 2000 20:13:22 +0900 |
> % 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.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)