[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/marginalia c9444d7: Don't use decoded-time-year which i
From: |
ELPA Syncer |
Subject: |
[elpa] externals/marginalia c9444d7: Don't use decoded-time-year which is not available on Emacs 26 |
Date: |
Wed, 6 Oct 2021 03:57:19 -0400 (EDT) |
branch: externals/marginalia
commit c9444d790d75c7cfaab1046570a05125f62576f0
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Don't use decoded-time-year which is not available on Emacs 26
Fix #107
---
marginalia.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/marginalia.el b/marginalia.el
index 2001689..e80a8fd 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -879,8 +879,9 @@ These annotations are skipped for remote paths."
"Format TIME as an absolute age."
(let ((system-time-locale "C"))
(format-time-string
- (if (> (decoded-time-year (decode-time (current-time)))
- (decoded-time-year (decode-time time)))
+ ;; decoded-time-year is only available on Emacs 27, use nth 5 here.
+ (if (> (nth 5 (decode-time (current-time)))
+ (nth 5 (decode-time time)))
" %Y %b %d"
"%b %d %H:%M")
time)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/marginalia c9444d7: Don't use decoded-time-year which is not available on Emacs 26,
ELPA Syncer <=