all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: phillip.lord@newcastle.ac.uk (Phillip Lord)
To: Xue Fuqiao <xfq.free@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: About idle timers
Date: Thu, 04 Apr 2013 10:07:55 +0100	[thread overview]
Message-ID: <874nfmbr4k.fsf@newcastle.ac.uk> (raw)
In-Reply-To: <20130404155958.c2cb9e47a150423b5201c823@gmail.com> (Xue Fuqiao's message of "Thu, 4 Apr 2013 15:59:58 +0800")

Xue Fuqiao <xfq.free@gmail.com> writes:
> In (info "(elisp) Idle Timers"):
>
>   An idle timer set for 600 seconds will run when ten minutes have
>   elapsed since the last user command was finished, even if subprocess
>   output has been accepted thousands of times within those ten minutes,
>   and even if there have been garbage collections and autosaves.
>
> Will the idle timer run if Emacs isn't idle after 600 seconds?

No. Emacs has to be idle for at least 600 seconds or the idle timer will
not run. Idle timers are very useful for running things "in the
background" that don't interrupt the user. You do have to use them
carefully though, because once the idle timer starts to run, it will
continue to run to completion. So, if you want to do anything
computational intensive, you need to check constantly to see if their is
user input pending. I normally do this with "sit-for".

Phil



  reply	other threads:[~2013-04-04  9:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04  7:59 About idle timers Xue Fuqiao
2013-04-04  9:07 ` Phillip Lord [this message]
2013-04-04 11:08   ` Xue Fuqiao

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=874nfmbr4k.fsf@newcastle.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    --cc=help-gnu-emacs@gnu.org \
    --cc=xfq.free@gmail.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.