1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00

* Make native comp use lexbinding for sync compilations (bug#78818)

* lisp/emacs-lisp/comp.el (comp--final): Use lexical-binding in the temp file.
This commit is contained in:
Andrea Corallo 2025-06-23 21:56:38 +02:00
parent 991d3ad80a
commit baf0c82202

View 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))