[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how long has emacs been idle?
From: |
Piet van Oostrum |
Subject: |
Re: how long has emacs been idle? |
Date: |
27 Nov 2003 22:50:17 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> 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