aboutsummaryrefslogtreecommitdiff
path: root/tests/test-wttrin-faces.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-02 22:37:06 -0400
committerCraig Jennings <c@cjennings.net>2026-07-02 22:37:06 -0400
commit8b461ecd3d4fae3be0a93523d19932e0a3d21c6c (patch)
treefdc4beb9d03b21b3655df8e2531d5f4efe4598b5 /tests/test-wttrin-faces.el
parent6c808ff4a4c54d543e065b722bc8517fe5141b45 (diff)
downloademacs-wttrin-release/0.4.0.tar.gz
emacs-wttrin-release/0.4.0.zip
fix: persist runtime favorite and saved locations in a state filerelease/0.4.0
savehist rewrites its whole file on every save, keeping only the variables registered in the running process. Any Emacs that saved savehist without wttrin loaded (a batch tool, a session that never opened wttrin) silently deleted the persisted favorite and saved-location entries. A d-set default then reverted to the init value on the next restart. The runtime favorite and directory now live in wttrin-state-file, written only by wttrin: write-through on every location command, atomic temp-file + rename, UTF-8 pinned both ways, read with read (never eval), versioned plist. Values restore at load and re-assert on savehist-mode-hook, so a stale legacy savehist restore can't clobber them. With no state file present, legacy savehist values are adopted and written once, so existing users migrate with zero steps. Search history stays on savehist. It's scrub-tolerant throwaway data, exactly what savehist is for. Also: the README documents the mode-line tooltip forecast option, and the gitignore covers one more local tooling artifact.
Diffstat (limited to 'tests/test-wttrin-faces.el')
0 files changed, 0 insertions, 0 deletions