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
This commit is contained in:
Joseph Mingrone 2025-04-23 23:32:43 -03:00
parent 125700dbc3
commit 58c7c92693
No known key found for this signature in database
GPG key ID: 36A40C83B0D6EF9E
4 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= emacs PORTNAME= emacs
DISTVERSION= 31.0.50.20250419 DISTVERSION= 31.0.50.20250419
PORTREVISION= 1
PORTEPOCH= 3 PORTEPOCH= 3
CATEGORIES= editors CATEGORIES= editors
PKGNAMESUFFIX= -devel PKGNAMESUFFIX= -devel

View file

@ -1,3 +1,5 @@
;;; site-start.el --- Site-wide Initialization -*- lexical-binding: t -*-
;;; Path to Emacs C Sources. ;;; Path to Emacs C Sources.
(when (string-match (regexp-quote "%%EMACS_VER%%") emacs-version) (when (string-match (regexp-quote "%%EMACS_VER%%") emacs-version)
(setq find-function-C-source-directory (setq find-function-C-source-directory

View file

@ -1,6 +1,6 @@
PORTNAME= emacs PORTNAME= emacs
DISTVERSION= 30.1 DISTVERSION= 30.1
PORTREVISION= 3 PORTREVISION= 4
PORTEPOCH= 3 PORTEPOCH= 3
CATEGORIES= editors CATEGORIES= editors
MASTER_SITES= GNU MASTER_SITES= GNU

View file

@ -1,3 +1,5 @@
;;; site-start.el --- Site-wide Initialization -*- lexical-binding: t -*-
;;; Path to Emacs C Sources. ;;; Path to Emacs C Sources.
(when (string-match (regexp-quote "%%EMACS_VER%%") emacs-version) (when (string-match (regexp-quote "%%EMACS_VER%%") emacs-version)
(setq find-function-C-source-directory (setq find-function-C-source-directory