diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-22 10:56:18 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-25 08:41:28 -0500 |
commit | c5b12f62aa415a1183c399c7a842d90cf82841dd (patch) | |
tree | 8b8eb64ad11a0661cf2d1eefbc3c0904b9c2e1f1 /flymake-rust.el | |
parent | c735494681f71bb0b64cae865b554cd056045f62 (diff) | |
download | flymake-rust-c5b12f62aa415a1183c399c7a842d90cf82841dd.tar.gz flymake-rust-c5b12f62aa415a1183c399c7a842d90cf82841dd.zip |
Allow the rustc checker to run between saves.
Diffstat (limited to 'flymake-rust.el')
-rw-r--r-- | flymake-rust.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/flymake-rust.el b/flymake-rust.el index 9bbb0e3..bc160f6 100644 --- a/flymake-rust.el +++ b/flymake-rust.el @@ -271,8 +271,11 @@ node ‘(flymake)Backend functions’." For the value of ‘ARGS’, see the documentation for ‘flymake-diagnostic-functions’." + ;; It seems like ‘:recent-changes’ is set when a temporary buffer + ;; change happens between saves, but is nil on file save (or initial + ;; check). (let ((rc (plist-member args :recent-changes))) - (when (or (not rc) (cadr rc)) + (when (or (not rc) (and (eq flymake-rust-checker 'rustc) (cadr rc))) (flymake-rust--call (current-buffer) report-fn)))) ;;;###autoload |