From e279593d41d1992ccde70cf7e5698c53c6e076d4 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 16 Feb 2008 22:21:18 +0000 Subject: [PATCH] (emacs-uptime): Use before-init-time rather than emacs-startup-time. --- lisp/ChangeLog | 6 ++++++ lisp/time.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 08664b7b346..ae9b0072d04 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -32,6 +32,12 @@ 2008-02-16 Glenn Morris + * startup.el (emacs-startup-time): Rename to `before-init-time'. + (before-init-time): New name for `emacs-startup-time'. + (command-line): Use before-init-time rather than emacs-startup-time. + * time.el (emacs-uptime): Use before-init-time rather than + emacs-startup-time. + * composite.el (composition-function-table): Doc fix. * calendar/time-date.el (format-seconds): Remove `nonzero' argument diff --git a/lisp/time.el b/lisp/time.el index dc4e500cddc..0613e1586bc 100644 --- a/lisp/time.el +++ b/lisp/time.el @@ -558,7 +558,7 @@ For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"." (let ((str (format-seconds (or format "%Y, %D, %H, %M, %z%S") (time-to-seconds - (time-subtract (current-time) emacs-startup-time))))) + (time-subtract (current-time) before-init-time))))) (if (interactive-p) (message "%s" str) str))) -- 2.39.5