aboutsummaryrefslogtreecommitdiff
path: root/scripts/coverage-summary.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-26 18:35:04 -0500
committerCraig Jennings <c@cjennings.net>2026-04-26 18:35:04 -0500
commit537b58c431946ba34146743fc8be4fd671aac6d4 (patch)
treef8f2c3015853e1bc7c1e8722fc0c11d02a629562 /scripts/coverage-summary.py
parent38a6a0a745022ed7f0336f7deb121d75f589a916 (diff)
downloademacs-wttrin-537b58c431946ba34146743fc8be4fd671aac6d4.tar.gz
emacs-wttrin-537b58c431946ba34146743fc8be4fd671aac6d4.zip
docs: explain mode-line state and update flow
Four variables hold the mode-line's runtime state: the cache, the rendered string, the stale-render flag, and the refresh timer. They get updated in a specific order across three different functions. Anyone reading `wttrin--mode-line-tooltip` for the first time hits a clever bit on every hover: the tooltip re-evaluates staleness and triggers a re-render of the icon if it flipped. Without a comment that ties this to the rest of the update flow, you have to trace through three other functions to understand why. The new comment block above the defvars lays out the order and the hover-driven re-render in one place, so future readers don't have to reconstruct it from the call graph.
Diffstat (limited to 'scripts/coverage-summary.py')
0 files changed, 0 insertions, 0 deletions