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

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

[nongnu] elpa/inf-ruby ec0d30ad19 019/265: Merge pull request #5 from le


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby ec0d30ad19 019/265: Merge pull request #5 from lewang/quote_fix
Date: Sat, 9 Jul 2022 21:59:10 -0400 (EDT)

branch: elpa/inf-ruby
commit ec0d30ad1974edadaa688c4be118839494ae4fcc
Merge: 1940f90fde 415eb2dfd8
Author: nonsequitur <cornelius.mika@gmail.com>
Commit: nonsequitur <cornelius.mika@gmail.com>

    Merge pull request #5 from lewang/quote_fix
    
    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]