Kent Sibilev wrote:

> > > On Wednesday, March 16, 2016 at 5:52:38 PM UTC-4, Bram Moolenaar wrote:
> > > > Patch 7.4.1582
> > > > Problem:    Get E923 when using function(dict.func, [], dict). (Kent 
> > > > Sibilev)
> > > >             Storing a function with a dict in a variable drops the dict 
> > > > if the
> > > >             function is script-local.
> > > > Solution:   Translate the function name.  Use dict arg if present.
> > > > Files:      src/eval.c, src/testdir/test_partial.vim
> > > > 
> > > > 
> > > 
> > > This change introduced another bug:
> > > 
> > > function! s:MyFunc(bang, buffer)
> > >   echo a:bang . a:buffer
> > > endfunction
> > > command! -bang -complete=buffer -nargs=? MyFunc call s:MyFunc('<bang>', 
> > > '<args>')
> > > command! -bang -complete=buffer -nargs=? MyFuncBug call 
> > > <SID>MyFunc('<bang>', '<args>')
> > > 
> > > 
> > > Calling MyFunc command works fine. Calling MyFuncBug command triggers
> > > E116 error.
> > 
> > I cannot reproduce that problem.  Not sure if your situation is
> > different or a later patch fixed it.
> > 
> > -- 
> 
> Hm, :version says I'm running 1-1586 and I can consistently reproduce
> it. Strange.

What is the command you give then?  Does it matter if you type it or put
it in the same script as s:MyFunc()?

-- 
"Thou shalt not follow the Null Pointer, for at its end Chaos and
Madness lie."

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui