Hi,
   the gtags.vim script I attached earlier had some minor issues
* Not nice handling of  tag not found condition (not silent)
* the copen was below the caddexpr and cn, so swapped the blocks.

Works much better for me now.. Hope, this is useful for updating official 
gtags.vim and improving it

Regards,
Ritesh

----- Original Message ----
From: Ritesh Banerjee <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; [email protected]
Cc: [EMAIL PROTECTED]
Sent: Saturday, April 5, 2008 11:33:18 PM
Subject: Regarding gtags.cim improvements

Hi Shigio san,
  thanks for the wonderful global tool (esp. thelatest very fast versions). I 
used global and gtags.vim on Windows, andhad faced problems with the default 
script.

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)

Now, that of course, requires tee.exe (from cygwin or ming32) but works well.

Anotherchange I did (since the default global format is wasteful in printingthe 
pattern search on each line) is to change the following wrterrorformat 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 :-)

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

Pleasefind my gtags.vim with the commented lines for the old method and 
itschange. I hope this makes gtags.vim work on windows and linux 
(w/orequirement of tee.exe) and is also faster and more informative ...

Regards,
Ritesh Banerjee


      You rock. That's why Blockbuster's offering you one month of Blockbuster 
Total Access, No Cost.





      
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

Attachment: gtags.vim
Description: Binary data

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

Reply via email to