Add lexical-binding cookie to autoload files

* build-aux/update-subdirs:
* lisp/emacs-lisp/autoload.el (autoload-rubric): Add lexical-binding
cookie to generated files (bug#44854).
This commit is contained in:
Stefan Kangas 2020-12-31 06:35:49 +01:00 committed by Lars Ingebrigtsen
parent 144b883eb0
commit 72b8430fea

View file

@ -368,7 +368,8 @@ FILE's name."
(let ((basename (file-name-nondirectory file))
(lp (if (equal type "package") (setq type "autoloads"))))
(concat ";;; " basename
" --- automatically extracted " (or type "autoloads") "\n"
" --- automatically extracted " (or type "autoloads")
" -*- lexical-binding: t -*-\n"
";;\n"
";;; Code:\n\n"
(if lp