[Top][All Lists]
[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
- Re: jit-lock timer etc., (continued)
- Re: jit-lock timer etc., Kim F. Storm, 2006/08/21
- Re: jit-lock timer etc., martin rudalics, 2006/08/21
- Re: jit-lock timer etc., Chong Yidong, 2006/08/21
- Re: jit-lock timer etc., martin rudalics, 2006/08/21
- Re: jit-lock timer etc., Chong Yidong, 2006/08/21
- Re: jit-lock timer etc., Kim F. Storm, 2006/08/22
- Re: jit-lock timer etc., Richard Stallman, 2006/08/22
- Re: jit-lock timer etc., martin rudalics, 2006/08/23
- Re: jit-lock timer etc., Kim F. Storm, 2006/08/23
- Re: jit-lock timer etc., Richard Stallman, 2006/08/24
- Re: jit-lock timer etc.,
Kim F. Storm <=
- Re: jit-lock timer etc., Kim F. Storm, 2006/08/24
- Re: jit-lock timer etc., Kim F. Storm, 2006/08/24
- Re: jit-lock timer etc., Chong Yidong, 2006/08/24
- Re: jit-lock timer etc., Richard Stallman, 2006/08/25
- Re: jit-lock timer etc., Kim F. Storm, 2006/08/25
- Re: jit-lock timer etc., Richard Stallman, 2006/08/25
- Re: jit-lock timer etc., Chong Yidong, 2006/08/25
- Re: jit-lock timer etc., Richard Stallman, 2006/08/26
- Re: jit-lock timer etc., Kim F. Storm, 2006/08/24
- Re: jit-lock timer etc., martin rudalics, 2006/08/24