GNU bug report logs - #32902
Add support for (TIMESTAMP . RESOLUTION) Lisp timestamps

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Tue, 2 Oct 2018 01:02:02 UTC

Severity: wishlist

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Subject: bug#32902: closed (Re: bug#32902: Add support for (TIMESTAMP .
 RESOLUTION) Lisp timestamps)
Date: Sun, 07 Oct 2018 06:33:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#32902: Add support for (TIMESTAMP . RESOLUTION) Lisp timestamps

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 32902 <at> debbugs.gnu.org.

-- 
32902: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32902
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 32902-done <at> debbugs.gnu.org
Subject: Re: bug#32902: Add support for (TIMESTAMP . RESOLUTION) Lisp
 timestamps
Date: Sat, 6 Oct 2018 23:32:00 -0700
Eli Zaretskii wrote:
> OK, but can we call the new file something like timefns.c?

Sure, that's easy enough. I revamped the patches to do that and installed them 
into master. Closing the bug report.

[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: GNU Emacs bug reports <bug-gnu-emacs <at> gnu.org>
Subject: Add support for (TIMESTAMP . RESOLUTION) Lisp timestamps
Date: Mon, 1 Oct 2018 18:00:26 -0700
[Message part 4 (text/plain, inline)]
The attached patches follow up on a suggestion by Stefan a few weeks 
ago, by adding support for a new Lisp timestamp format (TIMESTAMP . 
FREQUENCY), where TIMESTAMP is an integer that counts clock ticks and 
FREQUENCY is a positive integer that counts ticks per second. For 
brevity the documentation says (TICKS . HZ) instead of (TIMESTAMP . 
FREQUENCY).

Although current-time and similar functions continue to return the (HI 
LO US PS) format, the idea is that Emacs eventually should switch to 
(TICKS . HZ) as it is a better match for an Emacs with bignums (among 
other things, it does not lose information), and in the meantime we can 
better document that the Lisp timestamp format has changed in the past 
and can change in the future, and that user code should not depend on 
the exact timestamp format.

[0001-Move-timestamp-related-stuff-to-systime.c.patch (text/x-patch, attachment)]
[0002-Coalesce-duplicate-make_lisp_timeval-etc.patch (text/x-patch, attachment)]
[0003-Export-converting-mpz-to-u-intmax.patch (text/x-patch, attachment)]
[0004-New-TICKS-.-HZ-timestamp-format.patch (text/x-patch, attachment)]

This bug report was last modified 6 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.