Permalink
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 8657f25 commit e99dfd351653e87a2a8d0eced7eb968215f41aa7 @purcell committed Mar 19, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 flymake-sass.el
View
@@ -81,5 +81,10 @@ does not alter flymake's global configuration, so function
(message "Not enabling flymake: sass 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-sass)
;;; flymake-sass.el ends here

0 comments on commit e99dfd3

Please sign in to comment.