From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: uptime.el Date: Tue, 12 Feb 2008 00:54:06 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202796368 11102 80.91.229.12 (12 Feb 2008 06:06:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 06:06:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Francesc Rocher" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 07:06:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOoHZ-000718-BY for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 07:06:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOoH5-0005oy-NR for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 01:05:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOo5p-0006fT-4Z for emacs-devel@gnu.org; Tue, 12 Feb 2008 00:54:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOo5n-0006dU-C5 for emacs-devel@gnu.org; Tue, 12 Feb 2008 00:54:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOo5n-0006dE-5o for emacs-devel@gnu.org; Tue, 12 Feb 2008 00:54:07 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOo5n-000239-8t; Tue, 12 Feb 2008 00:54:07 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JOo5m-0001Zo-Gg; Tue, 12 Feb 2008 00:54:06 -0500 X-Spook: event security Mantis ANDVT S Key satellite imagery X-Ran: hQhLj=G\BLkijJZsZ#xG,{SF&Xk/!}g}8fPuq/K;GB6i,oZ7o%+{lB`iP;]{l\[;ok:vs@ X-Hue: magenta X-Attribution: GM In-Reply-To: (Francesc Rocher's message of "Tue, 12 Feb 2008 00:03:06 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88837 Archived-At: "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.