bug-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 10:47:31 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands)

Shigio Yamaguchi <address@hidden> writes:

> > It would be nice to have an option to consider different G* files, and
> >  use all of them.
> 
> Would you please send such variable suggestion to address@hidden
> Thank you.

Here is my previous message (on address@hidden) :
------------------------------------------------------

> > I have the following state :
> > 
> > /usr/local/XXX/ : no write access, some code (in fact only .h files)
> > 
> > /home/gilles/YYY/ : read/write access, .cc & .h files.
> > 
> > I want to use global to search in both directories, of course.
> > 
> > I see in the infos pages the GTAGSROOT, GTAGSDBPATH and GTAGSLIBPATH
> > variables, but can't figure out how to mix them together to make it works.
> 
> How about doing like this?
> 
> % cd /home/gilles/YYY
> % cp -r /usr/local/XXX .
> % gtags
> 
> If you want not to have a copy of /usr/local/XXX then you can make
> a shadow tree of it using symbolic link.
> 
> To do it, following tools are available:
> 
> o lndir in X project.
> o mkshadow in GNU sh-tool.
> o mkshadow in pathconvert package (http://www.tamacom.com/pathconvert/)

Yep, it works. Thanks.

I just have another idea :

% 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.

-- 
Julien Gilles.



reply via email to

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