Browse files

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

This defadvice is a long-standing and widely-used workaround. See also
  • Loading branch information...
1 parent 1c67ffc commit d623408421ef451f1c49d3369500dcde80da8e72 @purcell committed Mar 19, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 flymake-coffee.el
@@ -53,5 +53,10 @@ does not alter flymake's global configuration, so function
(message "Not enabling flymake: coffee 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-coffee)
;;; flymake-coffee.el ends here

0 comments on commit d623408

Please sign in to comment.