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: Sun, 10 Feb 2008 19:34:33 -0500 Message-ID: <07tzkgtjom.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202690088 20135 80.91.229.12 (11 Feb 2008 00:34:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 00:34:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 01:35:11 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 1JOMda-00078i-Rl for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 01:35:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOMd7-00049R-6x for ged-emacs-devel@m.gmane.org; Sun, 10 Feb 2008 19:34:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOMd3-00049M-9r for emacs-devel@gnu.org; Sun, 10 Feb 2008 19:34:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOMd1-00048O-7w for emacs-devel@gnu.org; Sun, 10 Feb 2008 19:34:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOMd1-00048A-3A for emacs-devel@gnu.org; Sun, 10 Feb 2008 19:34:35 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOMd0-0002Mn-Ty for emacs-devel@gnu.org; Sun, 10 Feb 2008 19:34:34 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JOMcz-0002aM-8U; Sun, 10 Feb 2008 19:34:33 -0500 X-Spook: credit card Adriatic BATF Sundevil PLO Security Council X-Ran: hM/7*p|aj$,Ar52zDO=^T-y$:;Ao`pOm6F%yT+v56U+kK^Jmj49H6~N:uw_"%b[GhVj X-Hue: red X-Attribution: GM In-Reply-To: (Richard Stallman's message of "Wed, 19 Dec 2007 05:12:31 -0500") 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:88696 Archived-At: Richard Stallman wrote: > What do people think of this? Might as well have this functionality. I installed something similar. > (The patch in startup.el should be done differently.) I set emacs-startup-time in command-line. > (defun emacs-uptime (&optional here) "\ > Tell how long GNU Emacs has been running. > If the optional argument HERE is non-nil, insert string at point." Didn't see the point of the HERE argument; used an alternative implementation based on something in gnus-art. > (defun emacs-startup-time (&optional here format) "\ > Return string containing the date and time Emacs was started up. Didn't see the point of this function, which is basically just a call to format-time-string.