aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2022-02-21 18:00:57 -0500
committerKyle Meyer <kyle@kyleam.com>2022-02-21 18:00:57 -0500
commite735cccc4f7032e6b4bbae1a23c4906d89e8ea10 (patch)
treee1d71664358407ad2769b1a34f2295156aaf4b4b
parent592901893f297099ffb759b4d1359bcd3411d1a9 (diff)
downloadsnakemake-mode-e735cccc4f7032e6b4bbae1a23c4906d89e8ea10.tar.gz
make: Load autoload.el before calling update-directory-autoloads
--eval uses lexical scoping as of Emacs 27. Load autoload.el to evaluate (defvar generated-autoload-file ...) and get dynamic scope. See Emacs's bug#39823.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee5898e..bcd2893 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ test: | .deps
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
$(AUTOLOADS_FILE): $(els)
- @$(BATCH) --eval \
+ @$(BATCH) -l autoload --eval \
"(let ((make-backup-files nil) \
(generated-autoload-file \"$(CURDIR)/$@\")) \
(update-directory-autoloads \"$(CURDIR)/\"))"