[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: idledo.el v. 0.3

From: Kim F. Storm
Subject: Re: idledo.el v. 0.3
Date: 24 Oct 2002 01:49:20 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

I wrote to D. Goel:
> I would suggest handling the timer directly in idledo to
> remove the dependency of timerfunctions.el

"D. Goel" <address@hidden> writes:
> RMS once suggested that i merge the functionality of timerfunctions.el
> into timer.el 
> I guess once the basic function 'tf-run-with-idle-timer' of
> timerfunctions.el becomes "right", we could rename it to some
> appropriate name liek 'run-while-idle-timer' and make that function
> part of timer.el if people agree...

If you look at run-with-timer, the REPEAT parameter may be an
integer/float indicating a repeat period for the timer, while for
run-with-idle-timer, repeat is just a boolean.

IMO, the clean enhancement to timer.el would be to allow REPEAT to be
a number for run-with-idle-timer as well.

This requires C-level changes, e.g. using the first element of the
timer vector to store the next time to execute the idle timer..., as
well as changes to timer-event-handler to update that field, but I
think it would be fairly trivial.

Once this is in place, we can also simplify the implementation of the


Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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