diff options
author | João Távora <joaotavora@gmail.com> | 2017-09-22 01:31:23 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2017-10-03 13:52:24 +0100 |
commit | b0bb181f9359aff07b09b919b8af397ef39d6784 (patch) | |
tree | 48ddd698be7ade48bb40d9390c1e98a3ff8273cd /lisp/emacs-lisp | |
parent | 54beebb4e0d919c7ee6dcdd7d774d851c35f85b7 (diff) | |
download | emacs-b0bb181f9359aff07b09b919b8af397ef39d6784.tar.gz emacs-b0bb181f9359aff07b09b919b8af397ef39d6784.tar.bz2 emacs-b0bb181f9359aff07b09b919b8af397ef39d6784.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions