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
commitd3c4fb38602ece4a7fab5c4624f93a6b4e312261 (patch)
treea84522c630664561661dc5868eceda48bfb4d6fa /Makefile
parent38ed8ce3675ef98c697fc18ba0fd6bb02ae82f28 (diff)
downloaddotemacs-d3c4fb38602ece4a7fab5c4624f93a6b4e312261.tar.gz
dotemacs-d3c4fb38602ece4a7fab5c4624f93a6b4e312261.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