diff options
author | JSDurand <mmemmew@gmail.com> | 2023-01-07 03:51:41 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2023-01-07 03:51:41 +0800 |
commit | 5a5785c9cc8a1e350e1ed3e274704eaa38bda948 (patch) | |
tree | 29869babc0fab9f50a9a5e8f0c21c1766176969a /eshell-conf.el | |
parent | 5aeb375b59ef4898d9d4525f86c3c2cd49ad5258 (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.el | 5 |
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)) |