[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
time-to-seconds and float-time
From: |
Stefan Monnier |
Subject: |
time-to-seconds and float-time |
Date: |
Tue, 02 Oct 2012 09:14:28 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
time-to-seconds has been marked obsolete since Emacs-21.
AFAIK, it's the only "obsolete since 21" that we still have, so I'd like
to get rid of it.
But I see that even our own bundled code still makes use of it, and the
time-date.el file has to do a funny hideous dance to define
time-to-seconds as on obsolete alias.
Apparently the problem is that its replacement (float-time) was not
taken up by XEmacs, so any package that wants to be compatible with
XEmacs ends up preferring time-to-seconds.
But there's another reason: while time-to-seconds is obsolete and
replaced by float-time, its inverse is not obsolete and is called
seconds-to-time. So the "time-to-seconds" name is not a bad choice.
So I'm really tempted to inverse the situation: de-obsolete
time-to-seconds, rename Ffloat_time to Ftime_to_seconds, and mark
float-time as an obsolete alias instead.
WDYT?
Stefan
- time-to-seconds and float-time,
Stefan Monnier <=
- Re: time-to-seconds and float-time, Juanma Barranquero, 2012/10/02
- Re: time-to-seconds and float-time, Lars Magne Ingebrigtsen, 2012/10/02
- Re: time-to-seconds and float-time, Paul Eggert, 2012/10/02
- Re: time-to-seconds and float-time, Chong Yidong, 2012/10/02
- time-to-seconds and float-time, Stephen J. Turnbull, 2012/10/03