From: Andrea Corallo Date: Mon, 23 Jun 2025 19:56:38 +0000 (+0200) Subject: * Make native comp use lexbinding for sync compilations (bug#78818) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=af679173785147d997bcfed076a369d91dbc3008;p=emacs.git * 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) --- 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))