Permalink
Browse files

allow quoted parameters to run-ruby

  • Loading branch information...
1 parent 1940f90 commit 415eb2dfd8b2d0ed9d8f9283692f2b85acda7638 Le Wang committed Feb 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 inf-ruby.el
View
@@ -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)

0 comments on commit 415eb2d

Please sign in to comment.