* time-to-seconds and float-time
@ 2012-10-02 13:14 Stefan Monnier
2012-10-02 13:32 ` Juanma Barranquero
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Stefan Monnier @ 2012-10-02 13:14 UTC (permalink / raw)
To: emacs-devel
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: time-to-seconds and float-time
2012-10-02 13:14 time-to-seconds and float-time Stefan Monnier
@ 2012-10-02 13:32 ` Juanma Barranquero
2012-10-02 13:37 ` Lars Magne Ingebrigtsen
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Juanma Barranquero @ 2012-10-02 13:32 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
On Tue, Oct 2, 2012 at 3:14 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> 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?
Seems like there's no downside to it.
Juanma
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: time-to-seconds and float-time
2012-10-02 13:14 time-to-seconds and float-time Stefan Monnier
2012-10-02 13:32 ` Juanma Barranquero
@ 2012-10-02 13:37 ` Lars Magne Ingebrigtsen
2012-10-02 15:09 ` Paul Eggert
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-10-02 13:37 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 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.
Sounds good to me.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: time-to-seconds and float-time
2012-10-02 13:14 time-to-seconds and float-time Stefan Monnier
2012-10-02 13:32 ` Juanma Barranquero
2012-10-02 13:37 ` Lars Magne Ingebrigtsen
@ 2012-10-02 15:09 ` Paul Eggert
2012-10-02 15:28 ` Chong Yidong
2012-10-03 5:02 ` Stephen J. Turnbull
4 siblings, 0 replies; 6+ messages in thread
From: Paul Eggert @ 2012-10-02 15:09 UTC (permalink / raw)
To: emacs-devel
On 10/02/2012 06:14 AM, Stefan Monnier wrote:
> 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.
Makes sense to me too.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: time-to-seconds and float-time
2012-10-02 13:14 time-to-seconds and float-time Stefan Monnier
` (2 preceding siblings ...)
2012-10-02 15:09 ` Paul Eggert
@ 2012-10-02 15:28 ` Chong Yidong
2012-10-03 5:02 ` Stephen J. Turnbull
4 siblings, 0 replies; 6+ messages in thread
From: Chong Yidong @ 2012-10-02 15:28 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 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?
The trouble is that we've have had float-time for ages, and there's very
little upside to making it obsolete now.
How about simply making time-to-seconds a permanant non-obsolete alias
for float-time?
^ permalink raw reply [flat|nested] 6+ messages in thread
* time-to-seconds and float-time
2012-10-02 13:14 time-to-seconds and float-time Stefan Monnier
` (3 preceding siblings ...)
2012-10-02 15:28 ` Chong Yidong
@ 2012-10-03 5:02 ` Stephen J. Turnbull
4 siblings, 0 replies; 6+ messages in thread
From: Stephen J. Turnbull @ 2012-10-03 5:02 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier writes:
> 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.
Sometime in 21.5 it was sync'ed. I doubt it will ever be sync'ed in
21.4 though.
> 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.
Sounds reasonable to me. But then it would. ;-)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-03 5:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 13:14 time-to-seconds and float-time Stefan Monnier
2012-10-02 13:32 ` Juanma Barranquero
2012-10-02 13:37 ` Lars Magne Ingebrigtsen
2012-10-02 15:09 ` Paul Eggert
2012-10-02 15:28 ` Chong Yidong
2012-10-03 5:02 ` Stephen J. Turnbull
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.