[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uptime.el

From: Glenn Morris
Subject: Re: uptime.el
Date: Tue, 12 Feb 2008 00:54:06 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

"Francesc Rocher" wrote:

>>I set emacs-startup-time in command-line.
> I prefer `emacs-startup-time' defined as a constant, not as a variable. As
> such, it needs to be evaluated only at startup:
>    (eval-at-startup
>     (defconst emacs-startup-time (current-time)
>       "Time at which GNU Emacs was started up."))

That just adds something to before-init-hook, which is run by command-line. 

> The HERE argument is the same as of the function `emacs-version'.

I don't see the point of the HERE argument there either. :)
Should every function that returns a string optionally insert it?

> `emacs-uptime' tells you how long emacs has been running, whilst
> `emacs-startup-time' tells you the time at which Emacs was started up.

I'm saying I don't see the need for a specialized function that
essentially just calls format-time-string on emacs-startup-time. If
someone wants to add it, they should go ahead.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]