Paul Jolly wrote:

> > > Added some logging and bizarrely, op_pending is not being called when
> > > I run this test with GVim (at least GVim hangs first).
> > >
> > > I'm nowhere near close enough to the code to work out what's going on
> > > here so hopefully this gives you a clue :)
> >
> > You must be doing something wrong.  f_state() always calls op_pending().
> > Is the log not started when you call state()?
> 
> The log is definitely started.
> 
> Actually, when using GVim I'm not getting any ch_log messages that
> originate from vim itself, e.g.
> 
>     SafeState: back to waiting, triggering SafeStateAgain
> 
> whereas when using Vim I do.

Weird.  I just tried and it works fine for me.  Is this with GTK?

I do notice the log is filled with these SafeState lines, we should
probably reduce that.
 
> So that's probably why I'm not seeing the ch_log lines I just added?
> 
> > > So I don't think this has anything to do with being blocked on
> > > receiving/sending messages per se.
> >
> > So what is the value of l:expr when that happens?
> 
> l:expr is:
> 
>     'echom "Hello from BufRead main.go"'

Hmm, perhaps it hangs in a "hit enter" prompt, but doesn't redraw the
screen?  You can use a debugger to find out where it is hanging.  Or use
ch_log() if that works.

-- 
        **  Hello and Welcome to the Psychiatric Hotline **
If you are obsessive-compulsive, please press 1 repeatedly.
If you are co-dependent, please ask someone to press 2.
If you have multiple personalities, please press 3, 4, 5 and 6.
If you are paranoid-delusional, we know who you are and what you want
       - just stay on the line so we can trace the call.
If you are schizophrenic, listen carefully and a little voice will
       tell you which number to press next.
If you are manic-depressive, it doesn't matter which number you press
       - no one will answer.
If you suffer from panic attacks, push every button you can find.
If you are sane, please hold on - we have the rest of humanity on the
        other line and they desparately want to ask you a few questions.

 /// 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/201909251144.x8PBiOTP000590%40masaka.moolenaar.net.

Raspunde prin e-mail lui