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

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

[nongnu] elpa/inf-ruby 771c7473b9 039/265: Pass --prompt default to ruby


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 771c7473b9 039/265: Pass --prompt default to ruby and jruby
Date: Sat, 9 Jul 2022 21:59:12 -0400 (EDT)

branch: elpa/inf-ruby
commit 771c7473b9001ba7c0fbf75521842acd784d1072
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    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"))



reply via email to

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