diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-04 13:07:50 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-04 13:07:50 -0500 |
| commit | f526cf641181e9cdb533a1f8a278de1fad49ca25 (patch) | |
| tree | f966ffbfa921a0f3ddb33e3e301845ed11c24db7 /wttrin-debug.el | |
| parent | 25b760d805e98ff3c0f0f9b29f75a108fb1dce10 (diff) | |
| download | emacs-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 'wttrin-debug.el')
0 files changed, 0 insertions, 0 deletions
