Bug 2545728

Summary: emacs 31.1 - warning - missing lexical-binding cookie - cmake-init.el
Product: [Fedora] Fedora Reporter: Guido <rds1944>
Component: cmakeAssignee: Björn Esser (besser82) <besser82>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 45CC: benson_muite, besser82, dan.cermak, dueno, gordon.messmer, gscrivan, marcandre.lureau, mavit, msekleta, phracek, sagitterghostproton.me, suraj.ghimire7, tfujiwar
Target Milestone: ---Keywords: Desktop, Regression, Upgrades
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-16 14:28:46 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 Guido 2026-10-04 22:29:55 UTC
On startup, a warning of missing cookie (lexical-binding) from /usr/share/emacs/site-lisp/site-start.d/cmake-init.el

Suggested M-X elisp-enable-lexical-binding is ineffective.



Reproducible: Always

Comment 1 Guido 2026-10-08 17:00:06 UTC
I installed Gnome & KDE in the same partition. On removing KDE, this phenom disappeared.

Comment 2 Giuseppe Scrivano 2026-11-13 12:35:02 UTC
needs to be fixed in the rpm itself: https://src.fedoraproject.org/rpms/cmake

diff --git a/cmake-init.el b/cmake-init.el
index a5e0e2e..1a88e04 100644
--- a/cmake-init.el
+++ b/cmake-init.el
@@ -1,4 +1,4 @@
-;;
+;;  -*- lexical-binding: t; -*-
 ;; Setup cmake-mode for autoloading
 ;;
 (autoload 'cmake-mode "cmake-mode" "Major mode for editing CMake listfiles." t)

Comment 3 Peter Oliver 2026-11-16 14:28:46 UTC

*** This bug has been marked as a duplicate of bug 2535610 ***