branch: elpa/inf-ruby
commit ec0d30ad1974edadaa688c4be118839494ae4fcc
Merge: 1940f90fde 415eb2dfd8
Author: nonsequitur <[email protected]>
Commit: nonsequitur <[email protected]>
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)