From d2b4c38e7e60cc0777642a61f94f0e5f550dbbdc Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 12 Jun 2026 18:15:35 -0500 Subject: fix(hooks): add edited file's dirs to byte-compile load-path for cross-project .el --- .claude/hooks/validate-el.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.claude/hooks/validate-el.sh b/.claude/hooks/validate-el.sh index d6999ac01..2529fccb8 100755 --- a/.claude/hooks/validate-el.sh +++ b/.claude/hooks/validate-el.sh @@ -51,7 +51,12 @@ case "$f" in fi ;; *.el) + # -L the file's own directory (and a sibling project root for files + # under a tests/ subdir) so cross-project edits compile against their + # own modules, not just this project's. if ! output="$(emacs --batch --no-site-file --no-site-lisp \ + -L "$(dirname "$f")" \ + -L "$(dirname "$f")/.." \ -L "$PROJECT_ROOT" \ -L "$PROJECT_ROOT/modules" \ -L "$PROJECT_ROOT/tests" \ -- cgit v1.2.3