emacs-devel
[Top][All Lists]
Advanced

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

Re: jit-lock timer etc.


From: Kim F. Storm
Subject: Re: jit-lock timer etc.
Date: Thu, 24 Aug 2006 09:47:01 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     I can hardly imagine emacs being idle for more than 2^28 seconds, so
>     it seems safe to simplify it to return a cons (SECS . USECS)  [see patch 
> below]
>
> I don't want to do that, because it would be incompatible with other
> time values.  

Well, since this is primarily for use in connection with run-with-idle-timer,
it seems more logical to use something which can be used more or less
directly with that function.

>               I'd rather people use time-to-seconds to convert.

time-to-seconds is in time-date.el which isn't pre-loaded.

If we stick to the current value of current-idle-time, should we move
time-to-seconds to subr.el?

>
> However, returning the value in floating point might be a good method.

That would be much better and cleaner, IMO.
And we can leave time-to-seconds where it is!

> But if we do that, we should call it float-idle-time.

Why?

The current name isn't list-with-three-elements-idle-time  :-)

The doc string will tell that the return value is a float.

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





reply via email to

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