From fc268ed4399724978b4c1c8385965e443da6ca2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sun, 19 Sep 2021 20:07:11 +0200 Subject: [PATCH] Dump with `lexical-binding` bound to nil * lisp/loadup.el (dump-mode): Temporarily bind `lexical-binding` to nil while dumping. Otherwise, it will be t in Emacs by default and that is not our intention (yet). --- lisp/loadup.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/loadup.el b/lisp/loadup.el index 1889ff562c6..fce17bf1137 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el @@ -541,7 +541,8 @@ lost after dumping"))) (let (success) (unwind-protect (let ((tmp-dump-mode dump-mode) - (dump-mode nil)) + (dump-mode nil) + (lexical-binding nil)) (if (member tmp-dump-mode '("pdump" "pbootstrap")) (dump-emacs-portable (expand-file-name output invocation-directory)) (dump-emacs output "temacs") -- 2.39.5