unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how long has emacs been idle?
@ 2003-11-27 14:23 Roland Winkler
  2003-11-27 21:50 ` Piet van Oostrum
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Winkler @ 2003-11-27 14:23 UTC (permalink / raw)



I have a timer function that is called every 60s. I would like to
modify the code such that this happens only when emacs has been idle
for not more than, say, 5 min. Is there a variable that my code
could check in order to know for how long emacs has been idle?

Thanks a lot,

Roland

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how long has emacs been idle?
  2003-11-27 14:23 how long has emacs been idle? Roland Winkler
@ 2003-11-27 21:50 ` Piet van Oostrum
  0 siblings, 0 replies; 2+ messages in thread
From: Piet van Oostrum @ 2003-11-27 21:50 UTC (permalink / raw)


>>>>> Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> (RW) wrote:

RW> I have a timer function that is called every 60s. I would like to
RW> modify the code such that this happens only when emacs has been idle
RW> for not more than, say, 5 min. Is there a variable that my code
RW> could check in order to know for how long emacs has been idle?

Maybe you just need the function `run-with-idle-timer'. Anyway you can use
this function to set a variable.
-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum@hccnet.nl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-27 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-27 14:23 how long has emacs been idle? Roland Winkler
2003-11-27 21:50 ` Piet van Oostrum

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).