diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-21 20:53:30 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-21 20:53:30 -0500 |
| commit | b5fe103e6c447d1293233e15250d585d524ecc68 (patch) | |
| tree | e3e2ae481afc09036d793dc59791b26bfa45de00 | |
| parent | b19b0093ef23cbffa9de419313c64e72e35488b5 (diff) | |
| download | chime-b5fe103e6c447d1293233e15250d585d524ecc68.tar.gz chime-b5fe103e6c447d1293233e15250d585d524ecc68.zip | |
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.
| -rw-r--r-- | chime-org-contacts.el | 4 |
1 files changed, 1 insertions, 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. |
