[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sit-for and idle timers
From: |
Chong Yidong |
Subject: |
Re: sit-for and idle timers |
Date: |
Tue, 15 Aug 2006 16:12:02 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> This is inconsistent with the old (built-in) behavior of sit-for,
> which did not activate idle timers while waiting either.
>
> Ok, I am convinced. Could you implement it?
Done. I also updated the lispref manual to clarify this issue.
> Meanwhile, before the call at line 1494 of keyboard.c, something ought
> to make Emacs idle.
You mean something like this?
/* Bind inhibit-quit to t so that C-g gets read in
rather than quitting back to the minibuffer. */
int count = SPECPDL_INDEX ();
specbind (Qinhibit_quit, Qt);
timer_start_idle ();
sit_for (Vminibuffer_message_timeout, 0, 2);
timer_stop_idle ();
/* Clear the echo area. */
message2 (0, 0, 0);
I don't really see why it's important (it's currently just a two
second pause in which idle timers don't run), and I don't know the
code well enough to know if it will break anything horribly.