<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -173,29 +173,26 @@ See the variable `align-rules-list' for more details.&quot;)
 
 (require 'inf-ruby)
 
-(if (fboundp 'inf-ruby-mode)
-  (defun run-ruby-in-buffer (buf script &amp;optional params)
-    &quot;Run CMD as a ruby process in BUF if BUF does not exist.&quot;
-    (let ((abuf (concat &quot;*&quot; buf &quot;*&quot;)))
-      (when (not (comint-check-proc abuf))
-        (set-buffer (make-comint buf rails-ruby-command nil script params)))
-      (inferior-ruby-mode)
-      (make-local-variable 'inferior-ruby-first-prompt-pattern)
-      (make-local-variable 'inferior-ruby-prompt-pattern)
-      (setq inferior-ruby-first-prompt-pattern &quot;^&gt;&gt; &quot;
-            inferior-ruby-prompt-pattern &quot;^&gt;&gt; &quot;)
-      (pop-to-buffer abuf)))
-  (defun run-ruby-in-buffer (buf script &amp;optional params)
-    &quot;Run CMD as a ruby process in BUF if BUF does not exist.&quot;
-    (let ((abuf (concat &quot;*&quot; buf &quot;*&quot;)))
-      (when (not (comint-check-proc abuf))
-        (set-buffer (make-comint buf rails-ruby-command nil script params)))
-      (inf-ruby-mode)
-      (make-local-variable 'inf-ruby-first-prompt-pattern)
-      (make-local-variable 'inf-ruby-prompt-pattern)
-      (setq inf-ruby-first-prompt-pattern &quot;^&gt;&gt; &quot;
-            inf-ruby-prompt-pattern &quot;^&gt;&gt; &quot;)
-      (pop-to-buffer abuf))))
+(defun run-ruby-in-buffer (buf script &amp;optional params)
+  &quot;Run CMD as a ruby process in BUF if BUF does not exist.&quot;
+  (let ((abuf (concat &quot;*&quot; buf &quot;*&quot;)))
+    (when (not (comint-check-proc abuf))
+      (set-buffer (make-comint buf rails-ruby-command nil script params)))
+    (if (fboundp 'inf-ruby-mode)
+      (progn
+        (inf-ruby-mode)
+        (make-local-variable 'inf-ruby-first-prompt-pattern)
+        (make-local-variable 'inf-ruby-prompt-pattern)
+        (setq inf-ruby-first-prompt-pattern &quot;^&gt;&gt; &quot;
+              inf-ruby-prompt-pattern &quot;^&gt;&gt; &quot;)
+        (pop-to-buffer abuf))
+      (progn
+        (inferior-ruby-mode)
+        (make-local-variable 'inferior-ruby-first-prompt-pattern)
+        (make-local-variable 'inferior-ruby-prompt-pattern)
+        (setq inferior-ruby-first-prompt-pattern &quot;^&gt;&gt; &quot;
+              inferior-ruby-prompt-pattern &quot;^&gt;&gt; &quot;)
+        (pop-to-buffer abuf)))))
 
 (defun complete-ruby-method (prefix &amp;optional maxnum)
   (if (capital-word-p prefix)</diff>
      <filename>rails-ruby.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a3240e543c344554162192d087d2ba3cdae4a351</id>
    </parent>
  </parents>
  <author>
    <name>Remco van 't Veer</name>
    <email>rwvtveer@xs4all.nl</email>
  </author>
  <url>http://github.com/remvee/emacs-rails/commit/bc55021adfcd77cbd5a060ae27a0245019c91858</url>
  <id>bc55021adfcd77cbd5a060ae27a0245019c91858</id>
  <committed-date>2009-10-20T04:15:16-07:00</committed-date>
  <authored-date>2009-10-20T04:15:16-07:00</authored-date>
  <message>fix for newer inf-ruby, second attempt</message>
  <tree>72a9661ed53baefa77082d6ea223958c5e63bd77</tree>
  <committer>
    <name>Remco van 't Veer</name>
    <email>rwvtveer@xs4all.nl</email>
  </committer>
</commit>
