> For example, we might happen to call from govim -> Vim while Vim is in the middle of handling a listener_add callback that itself calls ch_evalexpr which results in a call Vim ->govim.
Can this actually happen? Is this considered a "safe" situation then? I assume adding a zero tick timer wouldn't help there because vim could just schedule the timer callback within the listener callback. On Tue, Sep 10, 2019, 3:51 PM Paul Jolly <p...@myitcv.io> wrote: > > Using a timer won't help much, since you do not know when the state has > > changed. You can use autocommands, e.g.: > > if mode() =~ [iR] > > au InsertLeave * call DoTheWork() > > endif > > > > There is no generic autocommand event for changing mode, perhaps that is > > want you are looking for? Or a "NormalMode" event for when nothing is > > pending? That may take a while though. > > Thanks, Bram. This gives us food for thought; we'll continue > investigating the test failures to see if we can work out where things > are going wrong. > > -- > -- > 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 vim_dev+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vim_dev/CACoUkn5RPm5GrJA1aXDiz32T4dvm3wJ-hSZ24VrSEe0yNwaVog%40mail.gmail.com > . > -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAL%2BVoZ4OCPrj1Q7C-mbikg3KSKRCQCz7gwA6f34Qw8%3DhJV1nsg%40mail.gmail.com.