From af679173785147d997bcfed076a369d91dbc3008 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. (cherry picked from commit baf0c8220261a71da4b58806eb41dd014709561e) --- 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 a5a11c271c1..9e3962ecd9d 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)) -- 2.39.5