From baf0c8220261a71da4b58806eb41dd014709561e Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Mon, 23 Jun 2025 21:56:38 +0200 Subject: [PATCH] * Make native comp use lexbinding for sync compilations (bug#78818) * lisp/emacs-lisp/comp.el (comp--final): Use lexical-binding in the temp file. --- lisp/emacs-lisp/comp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index c7e38015c7e..d60e9b960d0 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -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))