bug-global
[Top][All Lists]
Advanced

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

Re: Feature request: file list


From: Marcus Harnisch
Subject: Re: Feature request: file list
Date: Fri, 24 Apr 2020 08:55:46 +0200

Hi Shigio

That would definitely be a good thing to have (including the corresponding short options). In my case an additional options filter will still be necessary so that --single-update won't trigger rebuilding the file list.

Thanks,
Marcus


On Fri, Apr 24, 2020 at 3:40 AM Shigio YAMAGUCHI <address@hidden> wrote:
> Something (perhaps gtags-mode) calls gtags with the --config option before
> the actual scan. This in turn invokes gtags_hook, too.
> I am already maintaining a list of options in my gtags_hook that should bypass
> generating the file list, e.g --help, --dump, --single-update. Now adding --config.

I understood.
How about skipping the hook when the following options are specified?
These are informational options only.

        --help, --dump, --config, --version

If there is no objection, I will make that change.

Thanks,
Shigio

2020年4月23日(木) 23:35 Marcus Harnisch <address@hidden>:
>
> Still investigating... It looks like the issue isn't caused by the actual gtags invocation. Something (perhaps gtags-mode) calls gtags with the --config option before the actual scan. This in turn invokes gtags_hook, too. I am already maintaining a list of options in my gtags_hook that should bypass generating the file list, e.g --help, --dump, --single-update. Now adding --config.
> Let's close this for now.
>
> Thanks,
> Marcus
>
> On Tue, Apr 21, 2020 at 11:22 PM Shigio YAMAGUCHI <address@hidden> wrote:
>>
>> Hello,
>> Could you please give me a reproduce method to understand the problem?
>>
>> Thanks,
>> Shigio
>>
>> 2020年4月21日(火) 22:26 Marcus Harnisch <address@hidden>:
>> >
>> > Hi Shigio
>> >
>> > It's been a while but related to this, I was wondering if GTAGS_COMMANDLINE isn't supposed to include ‘--single-update’ when specified. In my hook script, I am using this to determine whether to start a long-running process of rebuilding the file list.
>> > It looks like the switch doesn't make it into GTAGS_COMMANDLINE. Did this change in one of the recent releases? Could this be impacted by something in the config file? I am almost certain that it used to work the way I expected.
>> > $ global -u --single-update foo/bar
>> > GTAGS_COMMANDLINE=gtags --skip-unreadable --sqlite --compact --config=ctagscom
>> >
>> > Thanks,
>> > Marcus
>>
>>
>>
>> --
>> Shigio YAMAGUCHI <address@hidden>
>> PGP fingerprint:
>> 26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB



--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

reply via email to

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