Add `lexical-binding' cookie to generated files by package-vc

* lisp/emacs-lisp/package-vc.el
(package-vc--generate-description-file, package-vc--unpack-1):
Add `lexical-binding:t' cookie.
This commit is contained in:
Przemysław Kryger 2025-12-09 11:15:36 +01:00 committed by Michael Albinus
parent 06e9943412
commit 57ab746257

View file

@ -329,7 +329,7 @@ asynchronously."
(replace-regexp-in-string
"-pkg\\.el\\'" ".el"
(file-name-nondirectory pkg-file))
" -*- no-byte-compile: t -*-\n"
" -*- no-byte-compile: t; lexical-binding: t -*-\n"
(prin1-to-string
(nconc
(list 'define-package
@ -585,7 +585,7 @@ building documentation and marking the package as installed."
(unless (file-equal-p lisp-dir pkg-dir)
(write-region
(concat
";; Autoload indirection for package-vc\n\n"
";; Autoload indirection for package-vc -*- lexical-binding: t -*-\n\n"
(prin1-to-string
;; The indirection is just a single load statement to the
;; actual file (we don't want to use symbolic links due to