diff options
| author | Craig Jennings <c@cjennings.net> | 2026-08-24 22:26:33 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-08-24 22:26:33 -0600 |
| commit | 37e1c94d523e1d9b96ac8d8acbb488636f31c2cc (patch) | |
| tree | 8b9cdf7950cfa5c6fdd6b371db40dc8caef6ed4b /inbox | |
| parent | 8b461ecd3d4fae3be0a93523d19932e0a3d21c6c (diff) | |
| download | emacs-wttrin-37e1c94d523e1d9b96ac8d8acbb488636f31c2cc.tar.gz emacs-wttrin-37e1c94d523e1d9b96ac8d8acbb488636f31c2cc.zip | |
fix: re-read the state file when its path is set after loadrelease/0.4.0
The load-time restore read `wttrin-state-file` at whatever path the option held when wttrin loaded. A `setopt` in a use-package `:config` block runs after that read, so `d` wrote the new file and the next start never opened it. The default reverted to the init value on every restart.
I gave the option a `:set` handler that stores the value and re-runs `wttrin--state-load` from the new path. `setopt`, `customize-set-variable`, and Customize all route through it. When the restore changes the effective favorite while the mode-line mode is on, the mode-line refreshes to the restored city. A plain `setq` after load still waits for the next restore, and the docstring now says so.
Diffstat (limited to 'inbox')
0 files changed, 0 insertions, 0 deletions
