GNU bug report logs - #47306
28.0.50; [PATCH] Add optional FORMAT argument to 'emacs-init-time'

Previous Next

Package: emacs;

Reported by: Gabriel <gabriel376 <at> hotmail.com>

Date: Mon, 22 Mar 2021 00:47:01 UTC

Severity: wishlist

Tags: fixed, moreinfo, patch

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gabriel <gabriel376 <at> hotmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#47306: 28.0.50; [PATCH] Add optional FORMAT argument to
 'emacs-init-time'
Date: Mon, 22 Mar 2021 20:04:13 -0300
>> This patch adds an optional argument FORMAT to 'emacs-init-time',
>> similar to 'emacs-uptime'.
>
> I'm not quite sure what the use case is here?  `emacs-uptime' uses
> format-seconds, so it's a bit different...

Hi Lars,

The idea is to provide a flexible way for users to define their own
format to 'emacs-init-time'. It's very common for user to copy-paste
this function just to change the format, e.g., to use 2 decimal
places. For instance, see:

https://www.reddit.com/r/emacs/comments/m8d55l/what_is_your_startup_time/
https://blog.d46.us/advanced-emacs-startup/
https://emacs.stackexchange.com/questions/19249/long-pause-during-emacs-startup-prior-to-init-file-running
https://github.com/emacs-dashboard/emacs-dashboard/issues/57




This bug report was last modified 4 years and 62 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.