[Top][All Lists]

[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  <address@hidden> 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.


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


Contact information and PGP key at

...lived nine lives, gunned down ten...

Christopher Cross: Ride like the wind

reply via email to

[Prev in Thread] Current Thread [Next in Thread]