Bug 2545728 - emacs 31.1 - warning - missing lexical-binding cookie - cmake-init.el
Summary: emacs 31.1 - warning - missing lexical-binding cookie - cmake-init.el
Keywords:
Status: CLOSED DUPLICATE of bug 2535610
Alias: None
Product: Fedora
Classification: Fedora
Component: cmake
Version: 45
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Björn Esser (besser82)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2545603
TreeView+ depends on / blocked
 
Reported: 2026-10-04 22:29 UTC by Guido
Modified: 2026-11-16 14:28 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-11-16 14:28:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources cmake pull-request 61 0 None None None 2026-10-05 09:50:48 UTC

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 ***


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