Browse files

Make it look like flymake got interrupted, thus avoiding an exception.

This defadvice is a long-standing and widely-used workaround.
  • Loading branch information...
purcell committed Mar 19, 2012
1 parent 21c2b29 commit ff6f675573e325cf04b157d726fb6d546e58754a
Showing with 5 additions and 0 deletions.
  1. +5 −0 flymake-css.el
@@ -67,5 +67,10 @@ function `flymake-mode' alone will not suffice."
(message "Not enabling flymake: csslint command not found")))
+(defadvice flymake-post-syntax-check (before flymake-force-check-was-interrupted)
+ (setq flymake-check-was-interrupted t))
+(ad-activate 'flymake-post-syntax-check)
(provide 'flymake-css)
;;; flymake-css.el ends here

0 comments on commit ff6f675

Please sign in to comment.