From: Chong Yidong <cyd@stupidchicken.com>
Cc: friedman@splode.com, emacs-devel@gnu.org
Subject: Re: sit-for and idle timers
Date: Tue, 15 Aug 2006 16:12:02 -0400 [thread overview]
Message-ID: <874pwdbvxp.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1GCyEe-0007Mv-6w@fencepost.gnu.org> (Richard Stallman's message of "Tue, 15 Aug 2006 08:41:32 -0400")
Richard Stallman <rms@gnu.org> 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.
next prev parent reply other threads:[~2006-08-15 20:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-11 19:48 sit-for and idle timers Noah Friedman
2006-08-11 21:00 ` Chong Yidong
2006-08-14 18:34 ` Chong Yidong
2006-08-14 19:20 ` Richard Stallman
2006-08-14 19:47 ` Chong Yidong
2006-08-14 20:05 ` Chong Yidong
2006-08-15 12:41 ` Richard Stallman
2006-08-15 20:12 ` Chong Yidong [this message]
2006-08-16 19:27 ` Richard Stallman
2006-08-16 19:38 ` Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874pwdbvxp.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=friedman@splode.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.