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
commit923fa6688251a80ad9743b338a663203bcc74836 (patch)
tree4721299785ccafd16632043716e2b2b910272a9d /Makefile
parentf3072b3bf2c188df863148b68bc709cfedbac607 (diff)
downloaddotemacs-923fa6688251a80ad9743b338a663203bcc74836.tar.gz
dotemacs-923fa6688251a80ad9743b338a663203bcc74836.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 2006f5f42..498a520aa 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