emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: while-no-input and pending input


From: Michael Heerdegen
Subject: Re: while-no-input and pending input
Date: Fri, 12 Oct 2018 17:38:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> > > Why cannot you drain the event queue before calling while-no-input?
> > 
> > How can I do this?
>
> Call read-event with a short (or zero?) timeout in a loop, until it
> returns nil?

Thanks, I'll try that.

And afterwards I should add the events back to `unread-command-events'?


Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]