branch: elpa/dart-mode
commit f35222dbc3a92190d04598487ee3c6e18c731380
Author: Nathan Weizenbaum <[email protected]>
Commit: Nathan Weizenbaum <[email protected]>

    Fix an error in the flymake hook.
    
    Closes #6
---
 dart-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dart-mode.el b/dart-mode.el
index a060c5b..e9c55eb 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -487,8 +487,8 @@ Each list item should be a regexp matching a single 
identifier.")
      (when (boundp 'flymake-warn-line-regexp)
        (add-hook 'dart-mode-hook
                  (lambda ()
-                   (setq (make-variable-buffer-local 'flymake-warn-line-regexp)
-                         "^WARNING|"))))
+                   (set (make-variable-buffer-local 'flymake-warn-line-regexp)
+                        "^WARNING|"))))
 
      (defadvice flymake-post-syntax-check (before 
flymake-post-syntax-check-dart activate)
        "Sets the exit code of the dart_analyzer process to 0.

Reply via email to