unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: friedman@splode.com, emacs-devel@gnu.org
Subject: Re: sit-for and idle timers
Date: Wed, 16 Aug 2006 15:27:23 -0400	[thread overview]
Message-ID: <E1GDR2x-00087C-3N@fencepost.gnu.org> (raw)
In-Reply-To: <874pwdbvxp.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 15 Aug 2006 16:12:02 -0400)

    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 ();

Yes, except does it need timer_stop_idle?
It is going to read input straightaway after.

    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.

It isn't tremendously important, but it seems correct for Emacs'
idleness to begin when the command finishes.

If you see a risk, I don't insist on doing this now.
How about if you install it in the unicode-2 branch?

to be idle as soon as 

  reply	other threads:[~2006-08-16 19:27 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
2006-08-16 19:27           ` Richard Stallman [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GDR2x-00087C-3N@fencepost.gnu.org \
    --to=rms@gnu.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).