From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ndame Newsgroups: gmane.emacs.bugs Subject: bug#39956: 26.2; improve display of information of M-x list-timers Date: Fri, 6 Mar 2020 16:50:09 +0000 (GMT) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4135_507178880.1583513409196" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="68289"; mail-complaints-to="usenet@ciao.gmane.io" To: 39956@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 06 17:55:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jAGFo-000Hb8-0P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Mar 2020 17:55:16 +0100 Original-Received: from localhost ([::1]:39098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAGFn-00071i-0K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Mar 2020 11:55:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60422) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAGFc-00071Y-4D for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 11:55:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAGFa-0003cD-SF for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 11:55:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAGFa-0003bc-Oa for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 11:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAGFa-0001UP-N8 for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 11:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ndame Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Mar 2020 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39956 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.15835136805690 (code B ref -1); Fri, 06 Mar 2020 16:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2020 16:54:40 +0000 Original-Received: from localhost ([127.0.0.1]:45829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAGFD-0001Ti-UR for submit@debbugs.gnu.org; Fri, 06 Mar 2020 11:54:40 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAGFC-0001Tb-NH for submit@debbugs.gnu.org; Fri, 06 Mar 2020 11:54:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59978) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAGFB-0006zZ-HO for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 11:54:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAGFA-0002Xq-AY for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 11:54:37 -0500 Original-Received: from fmfe26.onbox.hu ([46.107.16.231]:44637 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jAGF9-0002SU-Uy for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2020 11:54:36 -0500 X-fm-smtp-source: yes Original-Received: from localhost (localhost [94.21.43.27]) by web-out.onbox.hu (Postfix) with SMTP id 48Ytxz6rtsz4j1 for ; Fri, 6 Mar 2020 17:54:31 +0100 (CET) X-AccountId: 57978162 X-Originating-Ip: 94.21.43.27 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudduvddgleeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffkufggtgfvihesrgdtregstddtudenucfhrhhomhepnhgurghmvgcuoegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhuqeenucfkphepleegrddvuddrgeefrddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopedpihhnvghtpeelgedrvddurdegfedrvdejpdhmrghilhhfrhhomhepvghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuhdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176970 Archived-At: ------=_Part_4135_507178880.1583513409196 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've been developing a package lately which uses several timers, and because of that I use M-x list-timers often. I don't see in the NEWS of 27 changes related to this, so I list some problems. The first thing which wasn't obvious first that the Next column displays the time in seconds, but the Repeat column uses minutes, though it's not indicated anywhere in the header that they use different units. Generally, the best solution could be to use days, hours, minutes, seconds format, instead of displaying floating point values. E.g this line =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0195.08 =C2=A0 =C2=A0 5.00 s= avehist-autosave could be more readable like this =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A03m 15.08s =C2=A0 =C2=A0 5m = =C2=A0savehist-autosave Or this one =C2=A0 =C2=A0 =C2=A0 =C2=A026479.43 =C2=A01440.00 run-hooks like this =C2=A0 =C2=A0 =C2=A0 =C2=A07h 21m 19.43s =C2=A01d run-hooks The latter also demonstrates an other problem: if you only see run-hooks as the function then you have no idea what will actually run. It's not trivial to find the source. So if the function has args then they should also be displayed, at least in some shortened form with the too long part cut off if the args are too long. =C2=A0 ------=_Part_4135_507178880.1583513409196 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
I've been developing a package lately which uses several timers, and
because of that I use M-x list-timers often. I don't see in the NEWS of 27
changes related to this, so I list some problems.

The first thing which wasn't obvious first that the Next column displays
the time in seconds, but the Repeat column uses minutes, though it's
not indicated anywhere in the header that they use different units.

Generally, the best solution could be to use days, hours, minutes,
seconds format, instead of displaying floating point values.

E.g this line

             195.08     5.00 savehist-autosave

could be more readable like this

             3m 15.08s     5m  savehist-autosave


Or this one

       26479.43  1440.00 run-hooks

like this

       7h 21m 19.43s  1d run-hooks



The latter also demonstrates an other problem: if you only see
run-hooks as the function then you have no idea what will actually
run. It's not trivial to find the source. So if the function has args
then they should also be displayed, at least in some shortened form
with the too long part cut off if the args are too long.
  ------=_Part_4135_507178880.1583513409196--