summaryrefslogtreecommitdiff
path: root/eshell-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-01-07 03:51:41 +0800
committerJSDurand <mmemmew@gmail.com>2023-01-07 03:51:41 +0800
commit5a5785c9cc8a1e350e1ed3e274704eaa38bda948 (patch)
tree29869babc0fab9f50a9a5e8f0c21c1766176969a /eshell-conf.el
parent5aeb375b59ef4898d9d4525f86c3c2cd49ad5258 (diff)
emacs-29 changes
These are some changes when I migrate to emacs version 29.
Diffstat (limited to 'eshell-conf.el')
-rw-r--r--eshell-conf.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/eshell-conf.el b/eshell-conf.el
index e99f037..42b727d 100644
--- a/eshell-conf.el
+++ b/eshell-conf.el
@@ -58,7 +58,10 @@
(elapsed-time-list (time-convert elapsed-time 'list))
(elapsed-time-int (time-convert elapsed-time 'integer))
(format-seconds-string
- (format-seconds "%yy %dd %hh %mm %ss%z" elapsed-time-int))
+ (cond ((> elapsed-time-int 0)
+ (format-seconds
+ "%yy %dd %hh %mm %ss%z"
+ elapsed-time-int))))
(microseconds (caddr elapsed-time-list))
(micro-str
(cond ((or (>= elapsed-time-int 1) (> microseconds 10000))