Skip to content

Suppress noisy "missing lexical-binding cookie" warnings on Emacs 31 - #896

Open
nnamdi91 wants to merge 2 commits into
purcell:mainfrom
nnamdi91:patch-1
Open

Suppress noisy "missing lexical-binding cookie" warnings on Emacs 31#896
nnamdi91 wants to merge 2 commits into
purcell:mainfrom
nnamdi91:patch-1

Conversation

@nnamdi91

Copy link
Copy Markdown

On Emacs 31, startup now emits warnings like:

  Warning (files): Missing 'lexical-binding' cookie in
  ".../elpa-31.1/sly-macrostep-20191211.1630/sly-macrostep-autoloads.el".

This comes from a new check in Emacs 31's files.el
(internal--get-default-lexical-binding), which warns whenever a plain
.el source file without a -*- lexical-binding: t -*- cookie is loaded
(previously silent). It fires for several packages this config declares,
e.g. sly-macrostep, org-pomodoro, elm-mode, purescript-mode, psci, dune --
because their (often auto-generated) -autoloads.el files predate the
lexical-binding-cookie convention.

Suppress startup warning for missing lexical binding cookie in Emacs 31.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant