aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 02:44:32 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 02:44:32 -0500
commit1d24227c1335b8b154d0bd14a34b6db5e8069f02 (patch)
tree4721299785ccafd16632043716e2b2b910272a9d /Makefile
parentfe937e752243107bead6e7711dea5a231a853d92 (diff)
downloaddotemacs-1d24227c1335b8b154d0bd14a34b6db5e8069f02.tar.gz
dotemacs-1d24227c1335b8b154d0bd14a34b6db5e8069f02.zip
Make batch Emacs prefer newer sources
Set load-prefer-newer for Makefile batch/test invocations. This matches normal startup and keeps tests from accidentally loading stale .elc files instead of the edited source.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2006f5f4..498a520a 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ ALL_TESTS = $(UNIT_TESTS) $(INTEGRATION_TESTS)
MODULE_FILES = $(wildcard $(MODULE_DIR)/*.el)
# Emacs batch flags
-EMACS_BATCH = $(EMACS) --batch --no-site-file --no-site-lisp
+EMACS_BATCH = $(EMACS) --batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)'
EMACS_TEST = $(EMACS_BATCH) -L $(TEST_DIR) -L $(MODULE_DIR)
# No colors - using plain text symbols instead