diff options
author | João Távora <joaotavora@gmail.com> | 2025-01-14 17:44:38 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2025-01-14 17:44:38 +0000 |
commit | 3a1b36a39dcd5a860a91a403f96721109203934a (patch) | |
tree | 3c275b1771087f0207da6a8a7603cdf19239ff2f /lisp/emacs-lisp/shortdoc.el | |
parent | e633bbfec0fe0fa436026d759132faa47b6b0dc4 (diff) | |
download | emacs-3a1b36a39dcd5a860a91a403f96721109203934a.tar.gz emacs-3a1b36a39dcd5a860a91a403f96721109203934a.tar.bz2 emacs-3a1b36a39dcd5a860a91a403f96721109203934a.zip |
Flymake: improve idempotence of flymake-mode (bug#69809)
In some circumstances, such as the ones described in the referenced bug
report, flymake-mode is activated non-interactively and asynchronously
in buffers where it may already be active and in the midst of
operations.
This commit ensures that flymake-mode a bit safer to re-enable in such
circumstances and fixes the bug. It also adds some comments documenting
the situation.
* lisp/progmodes/flymake.el (flymake-mode): Don't smash flymake--state.
Add some comments. No need to check for flymake--state nil.
(flymake--project-diagnostics): No need to check for flymake--state nil.
Diffstat (limited to 'lisp/emacs-lisp/shortdoc.el')
0 files changed, 0 insertions, 0 deletions