Bug 2577807 - /usr/share/emacs/site-lisp/site-start.d/start-po.el needs a lexical binding tag
Summary: /usr/share/emacs/site-lisp/site-start.d/start-po.el needs a lexical binding tag
Keywords:
Status: CLOSED COMPLETED
Alias: None
Product: Fedora
Classification: Fedora
Component: gettext
Version: 45
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Manish Tiwari
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2545603
TreeView+ depends on / blocked
 
Reported: 2026-11-20 06:45 UTC by Mattias Ellert
Modified: 2026-12-06 02:01 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-12-05 20:05:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.