aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-21 20:42:05 -0400
committerCraig Jennings <c@cjennings.net>2026-05-21 20:42:05 -0400
commit8580b34d7d74e9ee8977d68b77985d1826801508 (patch)
tree4f0ee3b8226f963bbae1ca68ed8ec3d6bc59906d /Makefile
parent7ca51e588a30b259246ceee7c855c8fe64772a1d (diff)
downloaddotemacs-8580b34d7d74e9ee8977d68b77985d1826801508.tar.gz
dotemacs-8580b34d7d74e9ee8977d68b77985d1826801508.zip
fix(org-contacts): set org-contacts-files eagerly so launch doesn't error
At startup the agenda-finalize hook ran cj/org-contacts-anniversaries-safe, which calls org-contacts-anniversaries, which calls org-contacts-files. That function messages "[org-contacts] ERROR: Your custom variable `org-contacts-files' is nil." when the variable is nil, and at that point it was nil. The value was set via the use-package :custom, which only applies when org-contacts loads, and that load is deferred behind :after (org mu4e) — later than the first agenda finalize. I set org-contacts-files eagerly at require time instead, so it's never nil by the time the hook fires. I also guarded the wrapper: org-contacts-files emits a message rather than signaling, so ignore-errors couldn't suppress it on its own. Now the call only runs when the variable is set. Three tests cover the eager set, the guard skipping when files are nil, and the wrapper running when they're set. Full suite green.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions