emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: [PATCH] Use lexical-binding cookie in some trivial files
Date: Sat, 23 Jan 2021 19:20:07 -0600	[thread overview]
Message-ID: <CADwFkm=8GdrwdaeJdDJH68wG1gh+D0w+hfGuTpdvCrMxHryTQQ@mail.gmail.com> (raw)

[-- 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


             reply	other threads:[~2021-01-24  1:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24  1:20 Stefan Kangas [this message]
2021-01-25  3:40 ` [PATCH] Use lexical-binding cookie in some trivial files Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkm=8GdrwdaeJdDJH68wG1gh+D0w+hfGuTpdvCrMxHryTQQ@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).