From b5fe103e6c447d1293233e15250d585d524ecc68 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 21 Apr 2026 20:53:30 -0500 Subject: fix: load convert-org-contacts-birthdays from load-path The previous form computed the file path at compile time via (file-name-directory (or load-file-name buffer-file-name)). Under emacs --batch byte-compile, both load-file-name and buffer-file-name are nil, so the inner expand-file-name call signaled "Wrong type argument: stringp, nil" and blocked validate-el.sh from accepting any edit to chime-org-contacts.el. convert-org-contacts-birthdays.el lives next to chime-org-contacts.el, so it is already on the load-path whenever chime-org-contacts is loadable. Drop the explicit path argument and let require resolve via load-path. --- chime-org-contacts.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chime-org-contacts.el b/chime-org-contacts.el index 5f532f6..73904c2 100644 --- a/chime-org-contacts.el +++ b/chime-org-contacts.el @@ -88,9 +88,7 @@ New contacts will be filed under this heading in `chime-org-contacts-file'." ;; Birthday parsing, formatting, and insertion are provided by ;; convert-org-contacts-birthdays.el to avoid duplication. -(require 'convert-org-contacts-birthdays - (expand-file-name "convert-org-contacts-birthdays.el" - (file-name-directory (or load-file-name buffer-file-name)))) +(require 'convert-org-contacts-birthdays) (defun chime-org-contacts--finalize-birthday-timestamp () "Add yearly repeating timestamp after properties drawer if BIRTHDAY is set. -- cgit v1.2.3