Hi Benjamin!

On Sa, 18 Dez 2010, Benjamin R. Haskell wrote:

> On Sat, 18 Dec 2010, Christian Brabandt wrote:
>>        exe test#WarningMsg("This plugin requires Vim 7.3 or higher")
>
> I think you want 'call' here, rather than 'exe'.

Yes. A left over from one of my tests. Didn't notice it, when writing 
the mail. But the plugin called it correctly.

> It seems like a possible optimization.  Replacing test#WarningMsg with  
> nonexistent#WarningMsg, it doesn't cause any trouble, for example.  (No  
> error is caused, even though autoload/nonexistent.vim doesn't exist.)  
> Apparently autoloading is done along with parsing?
>
> I could see where this might cause trouble, though.  Adding to the top  
> of autoload/test.vim:
>
> " simulate something that takes non-trivial time to initialize
> sleep 10
>
> And the test specified above takes 10 unnecessary seconds longer to run.

Yes exactly. I look into the code, maybe I find a way to fix it.

regards,
Christian

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui