[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.
- Re: uptime.el, Glenn Morris, 2008/02/10
- Re: uptime.el, Francesc Rocher, 2008/02/11
- Re: uptime.el,
Glenn Morris <=
- Re: uptime.el, Juri Linkov, 2008/02/12
- Re: uptime.el, Glenn Morris, 2008/02/14
- Re: uptime.el, Juri Linkov, 2008/02/14
- Re: uptime.el, Glenn Morris, 2008/02/15
- Re: uptime.el, Juri Linkov, 2008/02/15
- Re: uptime.el, Glenn Morris, 2008/02/15
- Re: uptime.el, Juri Linkov, 2008/02/16
- Re: uptime.el, Glenn Morris, 2008/02/16
- Re: uptime.el, Juri Linkov, 2008/02/16
- Re: uptime.el, Glenn Morris, 2008/02/16