emacs-devel
[Top][All Lists]
Advanced

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

Re: run-with-timer vs run-with-idle-timer


From: Eli Zaretskii
Subject: Re: run-with-timer vs run-with-idle-timer
Date: Wed, 09 May 2018 21:17:59 +0300

> From: João Távora <address@hidden>
> Date: Wed, 09 May 2018 18:34:41 +0100
> 
>   (catch 'done
>     (run-with-idle-timer 1 nil (lambda () (throw 'done nil)))
>     (while t (accept-process-output nil 0.1)))
> 
> Is it because accept-process-output means emacs isn't really idle?

Actually, yes, waiting in accept-process-output doesn't count as being
idle.  Emacs considers itself idle only when it waits for input in its
main loop.



reply via email to

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