doomemacs/lisp
Henrik Lissner def4579a9f
fix: silence 'missing lexical-binding cookie' warnings
As of recent commits of Emacs 31, elisp files missing a
"lexical-binding: t" cookie will emit this warning:

  Warning (files): Missing ‘lexical-binding’ cookie in "path/to/elisp/file".
  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.

You can look forward to many of these if you use any old and
unmaintained elisp packages, or if you have elisp shell scripts with
shebang lines (which make this warning unavoidable).

This commit silences these warnings because it's poorly implemented.
It's obnoxious to users and they aren't the ones that should be told
this. It ought to be emitted during byte-compilation or by linters (e.g.
`M-x checkdoc`) at the folks actually in a position to do something
about the warning (i.e. the developers).

Ref: https://lists.gnu.org/r/emacs-devel/2024-05/msg00283.html
2025-04-15 00:39:10 -04:00
..
cli refactor(cli): doctor: extract symlink check to function 2025-04-11 12:17:48 -04:00
lib refactor(lib): backport static-{if,when,unless} 2025-04-15 00:39:10 -04:00
.doommodule feat: add .doommodule files 2024-09-14 20:47:39 -04:00
demos.org refactor: deprecate appendq!, prependq!, & delq! macros 2025-03-25 14:16:56 -04:00
doom-cli.el fix(cli): appease byte-compiler sama 2025-01-08 19:33:38 -05:00
doom-compat.el nit(lib): doom-compat: make version comments consistent 2025-04-15 00:39:10 -04:00
doom-editor.el nit: recentf: reformat & revise comments 2025-04-04 05:11:08 -04:00
doom-elpaca.el refactor!: restructure Doom core 2024-11-03 01:52:28 -05:00
doom-keybinds.el refactor: deprecate appendq!, prependq!, & delq! macros 2025-03-25 14:16:56 -04:00
doom-lib.el refactor(lib): backport static-{if,when,unless} 2025-04-15 00:39:10 -04:00
doom-projects.el fix: init known projects before projectile-ensure-project 2025-03-30 16:10:23 -04:00
doom-start.el fix: clipboard issues on Windows + WSL 2025-03-26 07:55:36 -04:00
doom-straight.el refactor: deprecate appendq!, prependq!, & delq! macros 2025-03-25 14:16:56 -04:00
doom-ui.el tweak: use GUI dialogs on android 2025-04-14 15:01:03 -04:00
doom.el fix: silence 'missing lexical-binding cookie' warnings 2025-04-15 00:39:10 -04:00
init.el refactor: remove redundant backport 2025-01-08 19:33:36 -05:00
packages.el bump: :doom 2025-04-09 17:35:04 -04:00