Paul Jolly wrote:

> > It would be good to know why the recursion is needed.
> 
> The canonical example is an autocommand handler in a remote plugin
> that performs some actions that trigger another autocommand that also
> has a remote handler.
> 
> But we have many others.
> 
> > One thing we can
> > do is to only disallow closing channels when called recursively.
> 
> This would work. We only ever close the channel from Vim on exit, and
> if we wanted to close if prior to that it would not be via a remote
> function call, it would be via pure VimScript.

OK, let me implement this now: patch 8.2.0466.
Still would be good to have a test that would fail before this.

-- 
LAUNCELOT: I am, sir. I am a Knight of King Arthur.
FATHER:    'Mm ... very nice castle, Camelot ... very good pig country....
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202003281707.02SH7jR3028169%40masaka.moolenaar.net.

Raspunde prin e-mail lui