branch: externals/marginalia commit c9444d790d75c7cfaab1046570a05125f62576f0 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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)))