[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Handling of the .globalrc file
From: |
Shigio Yamaguchi |
Subject: |
Re: Handling of the .globalrc file |
Date: |
Fri, 10 Aug 2001 14:14:29 +0900 |
Hi again,
> > it appears gtags does not work because none of the defaults are set.
> >
> > In openconf (libutil/open.c) perhaps if the logic was reworked to set all
> > the defaults, then load the user/system rc file to overload the defaults,
> > the user would not need a complete set of entries in their rc file.
> >
> > Right now I delete my .globalrc file, run gtags & htags then move my files
> > to their final destination. Recreate the oneline .golbalrc file and run
> > bless in the various subdirectores.
>
> Config variable GTAGS, GRTAGS and GSYMS don't have default value, because
> GLOBAL doesn't know which parser are available.
> For example, we can use etags which is the tag command for Emacs
> as a parser of GLOBAL. But etags doesn't have neither -r nor -s option.
> So we cannot define GRTAGS and GSYMS variable in config file.
I'll resolve this problem by the following method:
[Current specification about treatment of variable GTAGS, GRTAGS and GSYMS]
if (config file not exist)
USE default value
else
does NOT USE default value
[New specification about treatment of variable GTAGS, GRTAGS and GSYMS]
if (config file not exist)
USE default value
else if (no GTAGS, GRTAGS and GSYMS specifed)
USE default value <= ADD
else
does NOT USE default value
Using new spec, you can execute gtags like:
[$HOME/.globalrc]
+---------------------
|default:format=compact
% gtags
Of course, 'suffixes', 'skip' and other essential variables are overloaded
with default values as it were.
What do you think?
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Handling of the .globalrc file,
Shigio Yamaguchi <=