Bug 2577807

Summary: /usr/share/emacs/site-lisp/site-start.d/start-po.el needs a lexical binding tag
Product: [Fedora] Fedora Reporter: Mattias Ellert <mattias.ellert>
Component: gettextAssignee: Manish Tiwari <matiwari>
Status: CLOSED COMPLETED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 45CC: dueno, i18n-bugs, matiwari, nils, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-12-05 20:05:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2545603    

Description Mattias Ellert 2026-11-20 06:45:49 UTC
When starting emacs 31 in Fedora 45 the following warning is displayed:

⛔ Warning (files): Missing ‘lexical-binding’ cookie in "/usr/share/emacs/site-lisp/site-start.d/start-po.el".
You can add one with ‘M-x elisp-enable-lexical-binding RET’.
See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’
for more information.

Reproducible: Always

Steps to Reproduce:
1. Install emacs-gettext package (built by the gettext source rpm)
2. Start emacs
Actual Results:
Warning appears.

Expected Results:
No warning.

Additional Information:
To fix add -*- lexical-binding: t -*-at the end of the comment on the first line of the file.

;;; start-po.el --- autoload definitions for viewing and editing PO files -*- lexical-binding: t -*-

Comment 1 Jens Petersen 2026-11-20 12:38:21 UTC
This should also be done upstream I suppose,
though makes sense to carry a patch until it trickles down.

Comment 2 Fedora Update System 2026-12-05 19:58:45 UTC
FEDORA-2026-59998708b9 (gettext-1.0-5.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-59998708b9

Comment 4 Fedora Update System 2026-12-06 02:01:39 UTC
FEDORA-2026-59998708b9 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-59998708b9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-59998708b9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.