bug-global
[Top][All Lists]
Advanced

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

Re: Regarding gtags.vim improvements


From: Shigio YAMAGUCHI
Subject: Re: Regarding gtags.vim improvements
Date: Tue, 8 Apr 2008 08:08:55 +0900

On Mon, 7 Apr 2008 01:52:47 -0700 (PDT)
Ritesh Banerjee <address@hidden> wrote:

> [Ritesh] Thanks, I tried this to do this. It gives the same error.
> However, on double checking, global-0.7 tar only contains version 0.2 (so no 
> surprise).
> Could you send the gtags.vim you mention ? As I explained its to do with the 
> system() with '>'
> on Windows (as far as I could get it).

Sorry but I don't know global-0.7.
Version 0.3 of gtags.vim is included in GLOBAL-5.7, and it works only with 
GLOBAL-5.7.
You can download it from here:
http://www.gnu.org/software/global/download.html

By the way, GLOBAL doesn't support Windows environments. Please see README, 
INSTALL or FAQ.

> [Ritesh] Here is the output using -t, -x, and --result grep. For me 
> personally,
> grep mode works best
> 
> -----> Using '-x' -------------->
> || saveenv_copy      329 u-boot/common/upgrade.c         saveenv_copy();
> || saveenv_copy      164 users/ifx/utilities/command.c int saveenv_copy()
> 
> -----> Using '-t' -------------->
> || saveenv_copy    u-boot/common/upgrade.c    329
> || saveenv_copy    users/ifx/utilities/command.c    164
> 
> -----> Using '--result grep' -------------->
> || Global:Searching [-g] for [saveenv_copy]
> u-boot\common\upgrade.c|329| saveenv_copy();
> users\ifx\utilities\command.c|164| int saveenv_copy()
> 
> ------------------------------->
> As you can see, the '--result grep' has less duplication and looks cleaner.

It seems that the above vim scripts using '-x' and '-t' don't work correctly.
Perhaps, variable '&efm' is not correctly set.

> [Ritesh] I didn't get this, I am afraid ? I don't need to count any lines.
> vim quickfix takes care of everything, its OS independent,
> and its faster than the other method... In case of no match, we onlu get the 
> print like
> "Global:Searching [-r] for [saveenv_copy]" makes it reasonably obvious if 
> there is no match...

In case of no match, vim should print an obvious error message like "Pattern 
'XXX' not found."
in a suitable place for the error message. I think quickfix window is not the 
place.

> [Ritesh]You are welcome :-) Just providing my 2c back in hope of benefiting 
> others (and myself).
> Could you update gtags.vim version 0.3 on vim plugin site ? I'll give it a 
> try.

Because gtags.vim version 0.3 requires GLOBAL-5.7, I hesitate to update just 
the gtags.vim.
For the time being, I would like to distribute gtags.vim 0.3 as part of 
GLOBAL-5.7.
-- 
Shigio YAMAGUCHI <address@hidden> - GNU Project
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

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