aboutsummaryrefslogtreecommitdiff
path: root/tests/test-wttrin--handle-fetch-callback.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-04 13:07:50 -0500
committerCraig Jennings <c@cjennings.net>2026-04-04 13:07:50 -0500
commitf526cf641181e9cdb533a1f8a278de1fad49ca25 (patch)
treef966ffbfa921a0f3ddb33e3e301845ed11c24db7 /tests/test-wttrin--handle-fetch-callback.el
parent25b760d805e98ff3c0f0f9b29f75a108fb1dce10 (diff)
downloademacs-wttrin-f526cf641181e9cdb533a1f8a278de1fad49ca25.tar.gz
emacs-wttrin-f526cf641181e9cdb533a1f8a278de1fad49ca25.zip
fix: mode-line tooltip always shows "Updated just now"
The tooltip was a static string computed at fetch time. Since every successful fetch sets the cache timestamp to now and immediately renders the tooltip, it was always "just now". Extract wttrin--mode-line-tooltip as a named function that computes age from the cache at call time. Set help-echo to this function so Emacs invokes it on hover, producing an accurate age like "Updated 12 minutes ago".
Diffstat (limited to 'tests/test-wttrin--handle-fetch-callback.el')
0 files changed, 0 insertions, 0 deletions