]> git.eshelyaron.com Git - emacs.git/commit
Protect Flymake's eager checks against commands like fill-paragraph
authorJoão Távora <joaotavora@gmail.com>
Fri, 22 Sep 2017 00:31:23 +0000 (01:31 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 2 Oct 2017 23:59:25 +0000 (00:59 +0100)
commit0a4e420a66ad3e40d2c6df995ca9189e137f9590
tree66f3049cf0471bbe7b47f60fd71e02f63040f700
parentfd9e32c414f38bdb0227fd7ef18fe392bac548d8
Protect Flymake's eager checks against commands like fill-paragraph

If flymake-start-syntax-check-on-newline is t, check should start as
soon as a newline is seen by after-change-functions.  But don't rush
it: since the buffer state might not be final, we might end up with
invalid diagnostic regions after some commands silently insert and
delete newlines (looking at you, fill-paragraph).

* lisp/progmodes/flymake.el (flymake-after-change-function): Pass
`deferred' to flymake--start-syntax-check.
(flymake--start-syntax-check): Take optional `deferred' arg.
lisp/progmodes/flymake.el