[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 281c1263f9 097/265: Fix completion in Ruby 1.8.7
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 281c1263f9 097/265: Fix completion in Ruby 1.8.7 |
Date: |
Sat, 9 Jul 2022 21:59:17 -0400 (EDT) |
branch: elpa/inf-ruby
commit 281c1263f9c8ce23cede2ba3abe11c304e23d8e0
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Fix completion in Ruby 1.8.7
Closes #42
---
inf-ruby.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 105bf041ef..d26c76843d 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -424,15 +424,16 @@ Then switch to the process buffer."
(set-process-filter proc (lambda (proc string) (setq kept (concat kept
string))))
(unwind-protect
(let ((completion-snippet
- (format (concat "if defined?(Pry.config) then "
+ (format (concat "proc { |expr, line| "
+ "if defined?(Pry.config) then "
"completor = Pry.config.completer"
".build_completion_proc(binding, defined?(_pry_) ?
_pry_ : Pry.new)"
" elsif defined?(Bond.agent) && Bond.started? then "
"completor = Bond.agent"
- " elsif
defined?(IRB::InputCompletor::CompletionProc) then "
- "completor = IRB::InputCompletor::CompletionProc "
- "end and "
- "puts completor.call('%s', '%s').compact\n")
+ " end ? (puts completor.call(expr, line).compact) :
"
+ "if defined?(IRB::InputCompletor::CompletionProc)
then "
+ "puts
IRB::InputCompletor::CompletionProc.call(expr).compact "
+ "end }.call('%s', '%s')\n")
(ruby-escape-single-quoted expr)
(ruby-escape-single-quoted line))))
(process-send-string proc completion-snippet)
- [nongnu] elpa/inf-ruby bae94383d5 256/265: Stop wrapping the evaluation result in quotes, (continued)
- [nongnu] elpa/inf-ruby bae94383d5 256/265: Stop wrapping the evaluation result in quotes, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby ff25dda5e2 259/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f892e6e74f 262/265: Set env var RUBY_DEBUG_NO_RELINE, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4ddf6b3889 265/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c97c8184ca 070/265: Take `inf-ruby-setup-keybindings' out of the picture, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 673d6b66b0 064/265: Do Bond completion in the middle of the line, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1bcb92d3ec 121/265: Revert "Work around pry/pry#1267", ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 74ae145ecd 078/265: Make MELPA link point to inf-ruby's subpage, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f4efbee52a 077/265: Drop the .el, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c2035822ea 106/265: Detect byebug debugger, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 281c1263f9 097/265: Fix completion in Ruby 1.8.7,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 9e2c0ab255 117/265: inf-ruby-console-rails: use 'bundle exec' if Gemfile is present, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f232f780ec 119/265: Link to the issue 51, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d4d2451d16 111/265: Apply `defcustom` fixes, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby fd84092271 099/265: Merge pull request #43 from hrvladev/fix-readme-typo, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 14ca8ddda5 098/265: Fix code indication in the readme, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8979f51c53 126/265: Start console.rb through bundler., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby db0bdf3f38 107/265: Merge pull request #50 from avsej/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 2cebc69ecd 095/265: Remove some outdated code, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6c00b018bf 142/265: inf-ruby-console-rails-p: Use a stricter check, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d130ede56a 133/265: Define a proper completion function, ELPA Syncer, 2022/07/09