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...
1 parent 509fbea commit 3bbe9cd1dc6dc7162331c3917a87c012dc89f35e @purcell committed Mar 19, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 flymake-php.el
@@ -47,5 +47,10 @@ does not alter flymake's global configuration, so function
(message "Not enabling flymake: '%' command not found" flymake-php-executable)))
+(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-php)
;;; flymake-php.el ends here

0 comments on commit 3bbe9cd

Please sign in to comment.