bug-global
[Top][All Lists]
Advanced

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

Re: make gtags.vim work for any dir


From: Andrey Butirsky
Subject: Re: make gtags.vim work for any dir
Date: Sat, 26 Jan 2019 02:45:02 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0

On 26.01.2019 01:56, Shigio YAMAGUCHI wrote:
> Some people do not need this function. I disagree with confusing
> existing users.
>
> How about the following?
>
> " The following custom variables are available.
> ...
> " Gtags_EmacsLike_Mode
> "       use the tag files of the project to which the current file
> "       belongs. By default, use the tag files of the current project.
>
> (If the grammar of this sentence is wrong, can you fix it?)
>
> Only people who want this function should do as follows.
>
> [$HOME/.vimrc]
> let Gtags_EmacsLike_Mode = 1
>
> What do you think?

I'm afraid if we won't do it default, people can never realize if the
feature exists.
Also, I can hardly imagine how it can get on the way of existing users.
As I can see, it mostly compatible with old behavior:

- tag files probably resides in common path along with the project anyway.
    If they are not, the manpage suggests using GTAGSROOT.
    If the are, the feature is transparent.

- users probably need tags from the current file's project, not some
other one.
- the feature is in parity with default Vim settings for ctags search path.

So I think it's just the most probable scenario for the users, and as
such, it should be default.
But, to be honest, I've never used any tags, so I can be wrong here still.

If you insist on 100% compatibility by default, maybe we could just
implement lookup in the two paths simultaneously (the current directory
and directory of the current file).





reply via email to

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