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

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

[nongnu] elpa/inf-ruby 415eb2dfd8 018/265: allow quoted parameters to ru


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 415eb2dfd8 018/265: allow quoted parameters to run-ruby
Date: Sat, 9 Jul 2022 21:59:10 -0400 (EDT)

branch: elpa/inf-ruby
commit 415eb2dfd8b2d0ed9d8f9283692f2b85acda7638
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>

    allow quoted parameters to run-ruby
---
 inf-ruby.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 496e24672b..fb3032440c 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -208,7 +208,7 @@ of `ruby-program-name').  Runs the hooks 
`inferior-ruby-mode-hook'
   (setq name (or name "ruby"))
 
   (if (not (comint-check-proc inf-ruby-buffer))
-      (let ((commandlist (split-string command)))
+      (let ((commandlist (split-string-and-unquote command)))
         (set-buffer (apply 'make-comint name (car commandlist)
                            nil (cdr commandlist)))
         (inf-ruby-mode)))
@@ -326,7 +326,7 @@ Then switch to the process buffer."
 
 (defun ruby-escape-single-quoted (str)
   (replace-regexp-in-string "'" "\\\\'"
-    (replace-regexp-in-string "\n" "\\\\n" 
+    (replace-regexp-in-string "\n" "\\\\n"
       (replace-regexp-in-string "\\\\" "\\\\\\\\" str))))
 
 (defun inf-ruby-completions (seed)



reply via email to

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