[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby e4ae089218 228/265: inf-ruby-console-gem: Support
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby e4ae089218 228/265: inf-ruby-console-gem: Support new IRB |
Date: |
Sat, 9 Jul 2022 21:59:28 -0400 (EDT) |
branch: elpa/inf-ruby
commit e4ae089218bda49eb87beb2ca3593260e2fa3748
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
inf-ruby-console-gem: Support new IRB
Fixes #128
---
inf-ruby.el | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index f93164ff10..8a21039c89 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -102,12 +102,16 @@ returns a string."
:group 'inf-ruby)
(defun inf-ruby--irb-command ()
- (let ((command "irb --prompt default --noreadline -r irb/completion")
- (version (nth 1 (split-string (shell-command-to-string "irb -v") "[
(]"))))
- (when (version<= "1.2.0" version)
+ (let ((command "irb --prompt default --noreadline -r irb/completion"))
+ (when (inf-ruby--irb-needs-nomultiline-p)
(setq command (concat command " --nomultiline")))
command))
+(defun inf-ruby--irb-needs-nomultiline-p ()
+ (let ((version (nth 1 (split-string
+ (shell-command-to-string "irb -v") "[ (]"))))
+ (version<= "1.2.0" version)))
+
(defcustom inf-ruby-console-environment 'ask
"Envronment to use for the `inf-ruby-console-*' commands.
If the value is not a string, ask the user to choose from the
@@ -929,6 +933,8 @@ Gemfile, it should use the `gemspec' instruction."
(concat " -r " (file-name-sans-extension file)))
files
""))))
+ (when (inf-ruby--irb-needs-nomultiline-p)
+ (setq base-command (concat base-command " --nomultiline")))
(inf-ruby-console-run
(concat base-command args
" --prompt default --noreadline -r irb/completion")
- [nongnu] elpa/inf-ruby 92d5d122fa 245/265: Use 'bundle exec' in nomultiline check when needed, (continued)
- [nongnu] elpa/inf-ruby 92d5d122fa 245/265: Use 'bundle exec' in nomultiline check when needed, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby bcdb97983c 257/265: Merge pull request #154 from tunnes/feature-create-load-current-ruby-file, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5143c84f91 189/265: inf-ruby-proc: Fall back to inf-ruby-buffer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5b24985b0e 135/265: Check IRB is defined before using it, fixes #64, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f908b1f506 136/265: Merge pull request #65 from iqbalansari/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 0af69257a4 138/265: Clarify the "usage" section, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 12d1d35f73 153/265: Add ruby-send-buffer function, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d39ea0bd59 212/265: Use a more common idea of prefix, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 227a80fc52 176/265: Correct regexp, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby ca10d72e0c 220/265: Merge pull request #118 from marsam/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby e4ae089218 228/265: inf-ruby-console-gem: Support new IRB,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby a5b471efc0 233/265: Update document for support ruby 2.7.1, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 067dcba3b0 234/265: Merge pull request #135 from zw963/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 965df80555 235/265: Copy edits, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b0124578db 238/265: Copy edits, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 7593d0f355 239/265: Change ruby-send-region to send any class and module lines that enlose the definition. Also throw error it not called within a definition, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 16c2acb458 250/265: Apply code review - use original Cider's face definition, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 2fae1a8ba9 248/265: Change 'C-x C-e' binding to use the new command, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 871158bcad 255/265: Merge pull request #153 from tunnes/feature-create-eval-overlay, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 7ed2b03c95 258/265: Check specifically than IRB.conf is defined, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8894867e9d 263/265: Fix #159 by bringing back --noreadline, ELPA Syncer, 2022/07/09