aboutsummaryrefslogtreecommitdiff
path: root/tests/test-wttrin--mode-line-timer-lifecycle.el
Commit message (Collapse)AuthorAgeFilesLines
* fix: stop the mode-line cleanly when disabled before startup firesCraig Jennings2026-06-281-0/+55
The delayed initial fetch was scheduled with run-at-time but the one-shot timer was discarded, and when the mode is enabled before after-init the start is queued on after-init-hook. Disabling the mode before either fired could still start timers, hit the network, or mutate mode-line state after the user turned it off. Stop now cancels the stored startup timer and removes the after-init hook, and the startup callback no-ops when the mode is off.