[-- Attachment #1: Type: text/plain, Size: 213 bytes --]
I'm trying to reduce the number of files in the Emacs source tree where
lexical-binding is nil. It would be nice if we could fix org-version.el
and org-install.el, like in the attached patch.
Thanks in advance.
[-- Attachment #2: 0001-Use-lexical-binding-cookie-in-some-trivial-files.patch --]
[-- Type: text/x-diff, Size: 1279 bytes --]
From c1d8378074bde48528943b36b38cbb5b3c058b21 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefan@marxist.se>
Date: Sun, 24 Jan 2021 02:05:02 +0100
Subject: [PATCH] Use lexical-binding cookie in some trivial files
* mk/org-fixup.el (org-make-org-version): Add lexical-binding cookie
to autogenerated files.
* lisp/org-install.el: Use lexical-binding.
---
lisp/org-install.el | 2 +-
mk/org-fixup.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org-install.el b/lisp/org-install.el
index 583595973..d521d819d 100644
--- a/lisp/org-install.el
+++ b/lisp/org-install.el
@@ -1,4 +1,4 @@
-;;; org-install.el --- backward compatibility file for obsolete configuration
+;;; org-install.el --- backward compatibility file for obsolete configuration -*- lexical-binding: t -*-
;;
;;; Code:
;;
diff --git a/mk/org-fixup.el b/mk/org-fixup.el
index bc7c6e528..c0eef23cb 100644
--- a/mk/org-fixup.el
+++ b/mk/org-fixup.el
@@ -43,7 +43,7 @@ work correctly if this file is not present (except directly from
the Git work tree)."
(with-temp-buffer
(insert "\
-;;; org-version.el --- autogenerated file, do not edit
+;;; org-version.el --- autogenerated file, do not edit -*- lexical-binding: t -*-
;;
;;; Code:
;;;\#\#\#autoload
--
2.29.2