From 17bcc1ff7659b4eb6845a564a094bb3cae4fadd9 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Mon, 14 Oct 2024 15:32:30 +0200 Subject: byline: help echo timestamps in numbers --- lisp/mastodon-tl.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 2e0588f..81be479 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -781,12 +781,15 @@ BASE-TOOT is JSON for the base toot, if any." (funcall action-byline toot) " " ;; timestamp: - (propertize - (format-time-string mastodon-toot-timestamp-format parsed-time) - 'timestamp parsed-time - 'display (if mastodon-tl--enable-relative-timestamps - (mastodon-tl--relative-time-description parsed-time) - parsed-time)) + (let ((ts (format-time-string + mastodon-toot-timestamp-format parsed-time))) + (propertize ts + 'timestamp parsed-time + 'display + (if mastodon-tl--enable-relative-timestamps + (mastodon-tl--relative-time-description parsed-time) + parsed-time) + 'help-echo ts)) ;; detailed: (when detailed-p (let* ((app (alist-get 'application toot)) -- cgit v1.2.3