[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: desktop mode, periodic save
From: |
Thorsten Bonow |
Subject: |
Re: desktop mode, periodic save |
Date: |
Thu, 28 Feb 2008 22:21:30 +0100 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux) |
>>>>> "Xah" == Xah <xahlee@gmail.com> writes:
Xah> how can i write a elisp code so that a function is called every 10
Xah> minutes.
Xah> I found “sleep-for” but it freezes emacs for the period.
Xah> Thanks.
Hi,
there are the
`run-with-idle-timer'/`run-with-timer' defuns...
I'm quoting from the documentation:
(run-with-timer secs repeat function &rest args)
Perform an action after a delay of secs seconds.
Repeat the action every repeat seconds, if repeat is non-nil.
secs and repeat may be integers or floating point numbers.
The action is to call function with arguments args.
This function returns a timer object which you can use in `cancel-timer'.
Toto
--
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow
...lived nine lives, gunned down ten...
Christopher Cross: Ride like the wind