branch: elpa/inf-ruby
commit 771c7473b9001ba7c0fbf75521842acd784d1072
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Pass --prompt default to ruby and jruby
Without it (or --inf-ruby-mode), IRB in Emacs on Windows defaults to
no prompt at all. The problem isn't limited to IRB, so we probably
should recommend fixing it via .irbrc instead, like here:
http://stackoverflow.com/questions/11221345/rails-console-runs-without-prompt
https://github.com/eschulte/rinari/issues/42#issuecomment-10626120
Haven't tested it with rubinius. I'm not modifying the yarv entry
because I don't believe anyone's using it (also, having different
versions of Ruby installed on Windows should be very uncommon).
---
inf-ruby.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index cbf84d5083..f0168230aa 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -51,8 +51,8 @@
"*Mode map for inf-ruby-mode")
(defvar inf-ruby-implementations
- '(("ruby" . "irb -r irb/completion")
- ("jruby" . "jruby -S irb -r irb/completion")
+ '(("ruby" . "irb --prompt default -r irb/completion")
+ ("jruby" . "jruby -S irb --prompt default -r irb/completion")
("rubinius" . "rbx -r irb/completion")
("yarv" . "irb1.9 -r irb/completion")
("macruby" . "macirb -r irb/completion"))