On Sun, 6 Apr 2008 01:01:38 -0700 (PDT)
Ritesh Banerjee <[EMAIL PROTECTED]> wrote:

Hi,
> Hi Shigio san,
>   thanks for the wonderful global tool (esp. the latest very fast versions).

Thank you. I'm glad to hear it.

> The gtags.vim script only worked on windows if I changed the following line:
>     let stuff = system(cmd . '>' . tmpfile)
> --->
>     let stuff = system(cmd . '| tee ' . tmpfile)

It seems that the gtags.vim which you are using is version-0.2.
A new version 0.3 was released the other day as a part of GLOBAL-5.7.
In this version, starting method of programs was changed.
Could you please try it if you have time?

> Another change I did (since the default global format is wasteful in printing 
> the pattern
> search on each line) is to change the following wrt errorformat and global 
> cmdline.
>     let cmd = 'global' . sep . '-tq' . option . sep . pattern
> --->
>     let cmd = 'global' . sep . '--result grep -q' . option . sep . pattern
> 
> This obviates the need to change the default errorformat :-)

In the latest version, the format option was changed from -t to -x so that
you can see line images in the list. Could you please try it too?

> Finally, to speed up the script processing, I commented out all previous 
> execution lines
> from the "system" function call, and added in its place
> -----
> cex! printf("Global:Searching [-%s] for [%s]", option, pattern)
> caddex! system(cmd)
> -----

Currently we don't use the caddexpr command, because we need to count number of 
records
from global(1). If there is an good idea, please tell me.

Thank you for your suggestions!

-- 
Shigio YAMAGUCHI <[EMAIL PROTECTED]> - GNU Project
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to