From e735cccc4f7032e6b4bbae1a23c4906d89e8ea10 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 21 Feb 2022 18:00:57 -0500 Subject: 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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)/\"))" -- cgit v1.2.3