summaryrefslogtreecommitdiff
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
commit544ada7926e003295e5d4e621b3d70f207b89d04 (patch)
treea84522c630664561661dc5868eceda48bfb4d6fa /Makefile
parentd27e328d1a781b1d3fb0c2f0f038bad4796798ac (diff)
downloaddotemacs-544ada7926e003295e5d4e621b3d70f207b89d04.tar.gz
dotemacs-544ada7926e003295e5d4e621b3d70f207b89d04.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