]> git.eshelyaron.com Git - emacs.git/commit
Inhibit flymake lexical cookie warning in *scratch* (bug#70068)
authorMattias EngdegÄrd <mattiase@acm.org>
Mon, 8 Apr 2024 17:07:19 +0000 (19:07 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Apr 2024 20:30:08 +0000 (22:30 +0200)
commitdc65dbbde54d9700f4fcd0ed35ab88768b9d09c9
treefaf42749d0641797b493000dc62931f72d8f5271
parentb2354e8379e80de3e51b15ceb2ee3dbe67fa8ca7
Inhibit flymake lexical cookie warning in *scratch* (bug#70068)

Add a hack to prevent flymake from complaining about a missing lexical
cookie when enabled in *scratch*.

* lisp/emacs-lisp/bytecomp.el
(bytecomp--inhibit-lexical-cookie-warning): New variable.
(byte-compile-file): Use it to gate the warning.
* lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile):
Set the inhibitor when spawning a check in lisp-interaction-mode.

(cherry picked from commit cda5155c618d774810ce5e044efe1101846054ac)
lisp/emacs-lisp/bytecomp.el
lisp/progmodes/elisp-mode.el