branch: elpa/flycheck
commit 1c8af1b619a72e5c82297b3a662e4b65d36da52c
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Re-check buffer after revert
    
    Add `after-revert-hook` to `flycheck-hooks-alist` so that Flycheck
    automatically re-checks the buffer after `revert-buffer`, e.g. when
    using `global-auto-revert-mode`.
    
    Fixes #1833
---
 flycheck.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flycheck.el b/flycheck.el
index 56ad03bdd5..d49aaf446c 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -2974,6 +2974,7 @@ Slots:
     ;; Handle events that may start automatic syntax checks
     (after-save-hook        . flycheck-handle-save)
     (after-change-functions . flycheck-handle-change)
+    (after-revert-hook      . flycheck-buffer)
     ;; Handle events that may trigger pending deferred checks
     (window-configuration-change-hook . flycheck-perform-deferred-syntax-check)
     (post-command-hook                . flycheck-perform-deferred-syntax-check)

Reply via email to