branch: elpa/dart-mode
commit ff905a991065ef2c584647632bd6032af63778f1
Merge: 592192c 010f557
Author: Nathan Weizenbaum <[email protected]>
Commit: Nathan Weizenbaum <[email protected]>
Merge pull request #3 from patefacio/master
changed (ad-do-it) to ad-do-it
---
dart-mode.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index 61d265f..a060c5b 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -356,8 +356,7 @@ SYNTAX-GUESS is the output of `c-guess-basic-syntax'."
(setq ad-return-value nil)))
(defadvice c-search-decl-header-end (around dart-search-decl-header-end
activate)
- (if (not (c-major-mode-is 'dart-mode))
- (ad-do-it)
+ (if (not (c-major-mode-is 'dart-mode)) ad-do-it
(let ((base (point)))
(while (and
(c-syntactic-re-search-forward "[;{=:]" nil 'move t t)
@@ -372,7 +371,7 @@ SYNTAX-GUESS is the output of `c-guess-basic-syntax'."
(setq base (point)))))))
(defadvice c-parse-state (around dart-c-parse-state activate)
- (if (not (c-major-mode-is 'dart-mode)) (ad-do-it)
+ (if (not (c-major-mode-is 'dart-mode)) ad-do-it
;; c-parse-state is a wrapper around c-parse-state-1 that does some tricks
;; to ensure that dangling brackets in preprocessor commands don't screw up
;; parse information for the real world. In Dart, all "preprocessor"