diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-16 12:20:44 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-16 12:20:44 -0500 |
| commit | 0490662ba54c09804bc4d021f1afcf7d3081eecc (patch) | |
| tree | 1ba996c49c9595704cd72f7fed9e9a5c3446f5ad /tests | |
| parent | 0020a00f6e7ad9b8cff587b1b84eb4af93abc437 (diff) | |
| download | dotemacs-0490662ba54c09804bc4d021f1afcf7d3081eecc.tar.gz dotemacs-0490662ba54c09804bc4d021f1afcf7d3081eecc.zip | |
refactor: consolidate runtime state into persist/
Six previously-scattered runtime state files now live under persist/
in user-emacs-directory:
- theme-file (was .emacs-theme)
- pdf-view-restore-filename (was .pdf-view-restore)
- time-zones--city-list-file (was .time-zones.el)
- calendar-sync--state-file (was data/calendar-sync-state.el)
- prescient-save-file (was var/prescient-save.el)
- org-id-locations-file (was .org-id-locations)
The defaults in each module now expand to persist/<name> instead of
the user-emacs-directory root or ad-hoc subdirs. Existing files
moved into persist/ alongside this change so the next launch picks
up the state without regenerating.
test-ui-theme-default-theme-file-is-emacs-dotfile renamed to
test-ui-theme-default-theme-file-is-under-persist and updated to
assert the new default path.
lsp-session-file is left at the root for now -- prog-lsp.el has no
(require) reference anywhere, so the use-package block that would
carry the redirect never runs. Tier 3 follow-up: confirm the module
is dead, then delete it or wire it into the load chain.
The var/ directory is now empty and removed. data/ retains the
calendar agenda content (dcal/gcal/pcal.org) and the .rest API
examples -- content, not state, stays where it is.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-ui-theme-persistence.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test-ui-theme-persistence.el b/tests/test-ui-theme-persistence.el index 86ed9de9..31e0e6cc 100644 --- a/tests/test-ui-theme-persistence.el +++ b/tests/test-ui-theme-persistence.el @@ -12,11 +12,10 @@ (require 'ui-theme) -(ert-deftest test-ui-theme-default-theme-file-is-emacs-dotfile () - "The default theme file should live under `user-emacs-directory'." +(ert-deftest test-ui-theme-default-theme-file-is-under-persist () + "The default theme file should live under `persist/' inside `user-emacs-directory'." (should (equal theme-file - (expand-file-name ".emacs-theme" user-emacs-directory))) - (should-not (string-match-p "emacs-theme\\.persist\\'" theme-file))) + (expand-file-name "persist/emacs-theme" user-emacs-directory)))) (ert-deftest test-ui-theme-read-missing-file-returns-nil () "Reading a missing theme file should return nil." |
