git: 58c7c926937f - main - Emacs ports: Add lexical-binding cookie to site-wide initialization
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Apr 2025 18:57:04 UTC
The branch main has been updated by jrm:
URL: https://cgit.FreeBSD.org/ports/commit/?id=58c7c926937f4ee2e9c4e8f82054dfa0debd6fec
commit 58c7c926937f4ee2e9c4e8f82054dfa0debd6fec
Author: Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2025-04-24 02:32:43 +0000
Commit: Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2025-04-25 18:57:01 +0000
Emacs ports: Add lexical-binding cookie to site-wide initialization
As of 9f25d46568b in upstream's master branch, Emacs emits a run-time
warning when lexical binding is unset. This serves as a reminder that
lexical binding is preferred.
Reviewed by: yasu
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49991
---
editors/emacs-devel/Makefile | 1 +
editors/emacs-devel/files/sources.el.in | 2 ++
editors/emacs/Makefile | 2 +-
editors/emacs/files/sources.el.in | 2 ++
4 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/editors/emacs-devel/Makefile b/editors/emacs-devel/Makefile
index b5c0fd43c110..853328a7f35c 100644
--- a/editors/emacs-devel/Makefile
+++ b/editors/emacs-devel/Makefile
@@ -1,5 +1,6 @@
PORTNAME= emacs
DISTVERSION= 31.0.50.20250419
+PORTREVISION= 1
PORTEPOCH= 3
CATEGORIES= editors
PKGNAMESUFFIX= -devel
diff --git a/editors/emacs-devel/files/sources.el.in b/editors/emacs-devel/files/sources.el.in
index 3f5929f3aa96..bc99181d4974 100644
--- a/editors/emacs-devel/files/sources.el.in
+++ b/editors/emacs-devel/files/sources.el.in
@@ -1,3 +1,5 @@
+;;; site-start.el --- Site-wide Initialization -*- lexical-binding: t -*-
+
;;; Path to Emacs C Sources.
(when (string-match (regexp-quote "%%EMACS_VER%%") emacs-version)
(setq find-function-C-source-directory
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
index ee2148ef8c95..0bff653f7f7e 100644
--- a/editors/emacs/Makefile
+++ b/editors/emacs/Makefile
@@ -1,6 +1,6 @@
PORTNAME= emacs
DISTVERSION= 30.1
-PORTREVISION= 3
+PORTREVISION= 4
PORTEPOCH= 3
CATEGORIES= editors
MASTER_SITES= GNU
diff --git a/editors/emacs/files/sources.el.in b/editors/emacs/files/sources.el.in
index 3f5929f3aa96..bc99181d4974 100644
--- a/editors/emacs/files/sources.el.in
+++ b/editors/emacs/files/sources.el.in
@@ -1,3 +1,5 @@
+;;; site-start.el --- Site-wide Initialization -*- lexical-binding: t -*-
+
;;; Path to Emacs C Sources.
(when (string-match (regexp-quote "%%EMACS_VER%%") emacs-version)
(setq find-function-C-source-directory