From ffc76ee7d725bf3e37eab643a95af79c1896b400 Mon Sep 17 00:00:00 2001 From: Joseph Mingrone Date: Sat, 26 Apr 2025 10:55:26 -0300 Subject: [PATCH] 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))