Permalink
Browse files

eval the whole unfinished instead of just the added identifier.

  • Loading branch information...
1 parent 8d04d7d commit 954046d104eaa5e21c93511d97dc4f50e6fdb890 Jani Rahkola committed Mar 15, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 midje-mode.el
View
@@ -80,13 +80,18 @@
(end-of-defun)
(indent-region beg (point))))
+(defun midje-eval-unfinished ()
+ (midje-to-unfinished)
+ (end-of-defun)
+ (slime-eval-last-expression))
+
(defun midje-add-identifier-to-unfinished-list (identifier)
(save-excursion
(save-restriction
(widen)
(midje-to-unfinished) (insert " ") (insert identifier)
- (slime-interactive-eval (concat "(unfinished " identifier ")"))
- (midje-tidy-unfinished))))
+ (midje-tidy-unfinished)
+ (midje-eval-unfinished))))
(defun midje-remove-identifier-from-unfinished-list ()
(save-excursion

0 comments on commit 954046d

Please sign in to comment.