all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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.