git: ffc76ee7d725 - main - print/pdf-tools: Add lexical-binding cookie to pdf-tools-init.el
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Apr 2025 14:33:27 UTC
The branch main has been updated by jrm:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ffc76ee7d725bf3e37eab643a95af79c1896b400
commit ffc76ee7d725bf3e37eab643a95af79c1896b400
Author: Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2025-04-26 13:55:26 +0000
Commit: Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2025-04-26 13:56:59 +0000
print/pdf-tools: Add lexical-binding cookie to pdf-tools-init.el
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.
Sponsored by: The FreeBSD Foundation
---
print/pdf-tools/Makefile | 2 +-
print/pdf-tools/files/pdf-tools-init.el | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/print/pdf-tools/Makefile b/print/pdf-tools/Makefile
index ff81170e4ef8..bd0f0263861b 100644
--- a/print/pdf-tools/Makefile
+++ b/print/pdf-tools/Makefile
@@ -1,7 +1,7 @@
PORTNAME= pdf-tools
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.0
-PORTREVISION= 12
+PORTREVISION= 13
CATEGORIES= print elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
diff --git a/print/pdf-tools/files/pdf-tools-init.el b/print/pdf-tools/files/pdf-tools-init.el
index 4a8ef5c0ec7f..bda1d663eba1 100644
--- a/print/pdf-tools/files/pdf-tools-init.el
+++ b/print/pdf-tools/files/pdf-tools-init.el
@@ -1,3 +1,5 @@
+;;; pdf-tools-init.el --- PDF Tools Initialization -*- lexical-binding: t -*-
+
(load "pdf-tools-loaddefs.el")
(autoload 'pdf-view-mode "pdf-tools")
(add-to-list 'auto-mode-alist '("\\.[pP][dD][fF]\\'" . pdf-view-mode))