 	    (message "Refactoring failed: %s" rsn))
 	   (['rex ['ok refac-tuple-to-record]]
 	    (with-current-buffer buffer (revert-buffer nil t t))
-            (message "Refactoring succeeded!")))))))
+            (message "Refactoring succeeded!")))))))))
 
 
 (defun erl-refactor-duplicated-code-in-buffer(node mintokens minclones)

	(start-line-no (line-no-pos start))
	(start-col-no  (current-column-pos start))
	(end-line-no   (line-no-pos end))
	(end-col-no    (current-column-pos end)))     
    (erl-spawn
      (erl-send-rpc node 'wrangler_distel 'expression_search
		    (list current-file-name start-line-no start-col-no end-line-no end-col-no))

	    (message "Refactoring failed: %s" rsn))
	   (['rex ['ok refac-rename]]
	    (with-current-buffer buffer (revert-buffer nil t t))
            (message "Refactoring succeeded!")))))))))
