From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: jit-lock timer etc. Date: Thu, 24 Aug 2006 09:47:01 +0200 Message-ID: References: <44E9E5F5.8000400@gmx.at> <87fyfpq5wf.fsf@stupidchicken.com> <44EA3222.9050405@gmx.at> <44EC49AD.2080001@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156405738 20652 80.91.229.2 (24 Aug 2006 07:48:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2006 07:48:58 +0000 (UTC) Cc: rudalics@gmx.at, cyd@stupidchicken.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 24 09:48:56 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GG9xF-00021T-Q3 for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 09:48:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GG9xF-0005AF-DY for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 03:48:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GG9x0-00059s-1D for emacs-devel@gnu.org; Thu, 24 Aug 2006 03:48:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GG9wz-00059g-HB for emacs-devel@gnu.org; Thu, 24 Aug 2006 03:48:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GG9wz-00059d-8K for emacs-devel@gnu.org; Thu, 24 Aug 2006 03:48:29 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GGA4z-0001v2-64; Thu, 24 Aug 2006 03:56:45 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id 292D3A5008C; Thu, 24 Aug 2006 09:48:14 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 24 Aug 2006 01:20:41 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58794 Archived-At: Richard Stallman 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 http://www.cua.dk