]> 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>
Tue, 3 Oct 2017 12:52:24 +0000 (13:52 +0100)
commitb0bb181f9359aff07b09b919b8af397ef39d6784
tree48ddd698be7ade48bb40d9390c1e98a3ff8273cd
parent54beebb4e0d919c7ee6dcdd7d774d851c35f85b7
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