]> git.eshelyaron.com Git - emacs.git/commitdiff
Dump with `lexical-binding` bound to nil
authorMattias Engdegård <mattiase@acm.org>
Sun, 19 Sep 2021 18:07:11 +0000 (20:07 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 20 Sep 2021 08:14:35 +0000 (10:14 +0200)
* 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

index 1889ff562c617e730b1b9736bacf55b4aab3d24d..fce17bf1137e35c27a75eadaee702e271a24ee82 100644 (file)
@@ -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")