From a3092750286d8dca2c78512724712f4606e06f53 Mon Sep 17 00:00:00 2001 From: nnamdi91 <66528799+nnamdi91@users.noreply.github.com> Date: Sun, 30 Aug 2026 09:45:03 +0100 Subject: [PATCH 1/2] Suppress missing lexical binding cookie warning on Emacs 31 Suppress startup warning for missing lexical binding cookie in Emacs 31. --- early-init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/early-init.el b/early-init.el index af09b4768d..17a09ea462 100644 --- a/early-init.el +++ b/early-init.el @@ -10,6 +10,14 @@ (setq package-enable-at-startup nil) +;; Emacs 31 added a startup warning for any plain .el source file that lacks +;; a `lexical-binding' cookie. It fires for several bundled packages' (often +;; auto-generated) autoloads files -- e.g. sly-macrostep, org-pomodoro, +;; elm-mode, purescript-mode. +;; Suppress just this specific warning type so a stock Emacs 31 startup stays +;; quiet, without hiding other `files'-category warnings/errors. +(add-to-list 'warning-suppress-log-types '(files missing-lexbind-cookie)) + ;; So we can detect this having been loaded (provide 'early-init) From 5f8c5d504b7ca43ac2e11af97738e32f20b6dae4 Mon Sep 17 00:00:00 2001 From: nnamdi91 <66528799+nnamdi91@users.noreply.github.com> Date: Sun, 30 Aug 2026 10:02:35 +0100 Subject: [PATCH 2/2] Suppress specific warning for Emacs startup --- early-init.el | 1 + 1 file changed, 1 insertion(+) diff --git a/early-init.el b/early-init.el index 17a09ea462..cd47701e14 100644 --- a/early-init.el +++ b/early-init.el @@ -16,6 +16,7 @@ ;; elm-mode, purescript-mode. ;; Suppress just this specific warning type so a stock Emacs 31 startup stays ;; quiet, without hiding other `files'-category warnings/errors. +(require 'warnings) (add-to-list 'warning-suppress-log-types '(files missing-lexbind-cookie)) ;; So we can detect this having been loaded