diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-26 17:41:32 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-26 17:41:32 -0500 |
| commit | 847276d2310c8f29dd0414de19510beb6fe8ef15 (patch) | |
| tree | 54d325c844065f97800bab22ce48e05cb37f2105 /init.el | |
| parent | a173980bef62da6183b035df3882721711dc5699 (diff) | |
| download | dotemacs-847276d2310c8f29dd0414de19510beb6fe8ef15.tar.gz dotemacs-847276d2310c8f29dd0414de19510beb6fe8ef15.zip | |
fix(prog-general): require user-constants for its config constants
prog-general uses code-dir, projects-dir, and snippets-dir (all from user-constants) in its projectile and yasnippet configs, but it only declared them as compile-time defvars and leaned on init.el loading user-constants first. That load-order assumption broke when the test suite ran combined: if another test file loaded prog-general before user-constants, yasnippet's :config hit a void snippets-dir and yas-global-mode never enabled, so eight yas-activation tests failed.
I replaced the three compile-time defvars with a runtime (require 'user-constants) so the module declares its real dependency and is self-contained. The combined prog-general suite is now 15/15, and the module no longer depends on init.el's load order for constants it reads at load time.
Diffstat (limited to 'init.el')
0 files changed, 0 insertions, 0 deletions
