emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/helm f73d8120b3 1/2: More precise idle-for in helm-elisp--


From: ELPA Syncer
Subject: [nongnu] elpa/helm f73d8120b3 1/2: More precise idle-for in helm-elisp--format-timer
Date: Wed, 18 May 2022 01:58:28 -0400 (EDT)

branch: elpa/helm
commit f73d8120b316e55733df61a024b68e093793627e
Author: Renato F <renatofdds@gmail.com>
Commit: GitHub <noreply@github.com>

    More precise idle-for in helm-elisp--format-timer
    
    Better format and consider milliseconds for idle timers.
---
 helm-elisp.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm-elisp.el b/helm-elisp.el
index 1f82a20fcb..462470782f 100644
--- a/helm-elisp.el
+++ b/helm-elisp.el
@@ -909,7 +909,9 @@ a string, i.e. the `symbol-name' of any existing symbol."
   (format "%s repeat=%s %s(%s)"
           (let ((time (timer--time timer)))
             (if (timer--idle-delay timer)
-                (format-time-string "idle-for=%5s" time)
+                (format "idle-for=[%s]"
+                        (format-seconds "%dd %hh %mmin %z%,3ss"
+                                        (time-convert time t)))
               (format-time-string "%m/%d %T" time)))
           (or (timer--repeat-delay timer) "nil")
           (mapconcat 'identity (split-string



reply via email to

[Prev in Thread] Current Thread [Next in Thread]