unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>, Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Pre-load time-date.el
Date: Thu, 16 Oct 2014 12:33:09 -0700	[thread overview]
Message-ID: <54401D75.70101@cs.ucla.edu> (raw)
In-Reply-To: <83iojj3lhc.fsf@gnu.org>

On 10/16/2014 11:42 AM, Eli Zaretskii wrote:
> it's seconds-to-time, which is called by timer-set-idle-time,
> which in turn is called by run-with-idle-timer.
>

It strikes me that low-level time primitives should accept counts of 
seconds (either integers, or floats) in addition to the funky (HIGH LOW 
USEC PSEC) format that they currently accept.This would be cheap to add 
at the low level, and would remove the need for many calls to 
seconds-to-time, including the abovementioned one, and would mean Emacs 
wouldn't need to preload time-date.el.  Also, doing the conversion in C 
would lessen the amount of timing error introduced by the conversion itself.




  reply	other threads:[~2014-10-16 19:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-16 16:47 Pre-load time-date.el Eli Zaretskii
2014-10-16 18:03 ` Glenn Morris
2014-10-16 18:22   ` Glenn Morris
2014-10-16 18:42     ` Eli Zaretskii
2014-10-16 19:33       ` Paul Eggert [this message]
2014-11-17  4:45         ` Paul Eggert
2014-10-16 18:24   ` Eli Zaretskii
2014-10-16 18:29     ` Glenn Morris
2014-10-16 18:51       ` Eli Zaretskii
2014-10-16 18:57         ` Eli Zaretskii
2014-10-16 19:01           ` Glenn Morris
2014-10-16 20:08   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54401D75.70101@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).