]> git.eshelyaron.com Git - emacs.git/commitdiff
* Make native comp use lexbinding for sync compilations (bug#78818)
authorAndrea Corallo <acorallo@gnu.org>
Mon, 23 Jun 2025 19:56:38 +0000 (21:56 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 19:02:05 +0000 (21:02 +0200)
* lisp/emacs-lisp/comp.el (comp--final): Use lexical-binding in the temp file.

(cherry picked from commit baf0c8220261a71da4b58806eb41dd014709561e)

lisp/emacs-lisp/comp.el

index a5a11c271c14ed4d8212a63fdd31523a06e5663b..9e3962ecd9d34c130143ba2bdf91242fe27c478e 100644 (file)
@@ -3363,7 +3363,7 @@ Prepare every function for final compilation and drive the C back-end."
                         nil ".el"))
              (default-directory invocation-directory))
        (with-temp-file temp-file
-          (insert ";; -*-coding: utf-8-emacs-unix; -*-\n")
+          (insert ";; -*- coding: utf-8-emacs-unix; lexical-binding: t -*-\n")
           (mapc (lambda (e)
                   (insert (prin1-to-string e)))
                 expr))