emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-ruby 41e5ed3a88 229/265: run-ruby: Update for the late


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 41e5ed3a88 229/265: run-ruby: Update for the latest change
Date: Sat, 9 Jul 2022 21:59:28 -0400 (EDT)

branch: elpa/inf-ruby
commit 41e5ed3a886fca56990486f1987bb3bae0dbd54b
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    run-ruby: Update for the latest change
    
    And simplify 'inf-ruby'.
    
    Fixes #131
---
 inf-ruby.el | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 8a21039c89..288cc1efd4 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -351,8 +351,6 @@ to that buffer. Otherwise create a new buffer."
   (setq impl (or impl "ruby"))
 
   (let ((command (cdr (assoc impl inf-ruby-implementations))))
-    (when (functionp command)
-      (setq command (funcall command)))
     (run-ruby command impl)))
 
 ;;;###autoload
@@ -376,8 +374,13 @@ Type \\[describe-mode] in the process buffer for the list 
of commands."
   ;; We're keeping both it and `inf-ruby' for backward compatibility.
   (interactive)
   (run-ruby-or-pop-to-buffer
-   (or command (cdr (assoc inf-ruby-default-implementation
-                           inf-ruby-implementations)))
+   (let ((command
+          (or command
+              (cdr (assoc inf-ruby-default-implementation
+                          inf-ruby-implementations)))))
+     (if (functionp command)
+         (funcall command)
+       command))
    (or name "ruby")
    (or (inf-ruby-buffer)
        inf-ruby-buffer)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]