branch: elpa/inf-ruby
commit d18e63e44e2d0b3b96d4c87ef3c8d7ed79b1d6e9
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Not real need for the third argument
---
inf-ruby.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index dfe2fb0289..8e9442eb94 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -448,8 +448,9 @@ Then switch to the process buffer."
(let ((completion-snippet
(format
(concat
- "proc { |expr, line, old_wp|"
+ "proc { |expr, line|"
" require 'ostruct';"
+ " old_wp = defined?(Bond) && Bond.started? &&
Bond.agent.weapon;"
" begin"
" Bond.agent.instance_variable_set('@weapon',"
" OpenStruct.new(line_buffer: line)) if old_wp;"
@@ -467,7 +468,7 @@ Then switch to the process buffer."
" ensure"
" Bond.agent.instance_variable_set('@weapon', old_wp) if
old_wp "
" end "
- "}.call('%s', '%s', defined?(Bond) && Bond.started? &&
Bond.agent.weapon)\n")
+ "}.call('%s', '%s')\n")
(ruby-escape-single-quoted expr)
(ruby-escape-single-quoted line))))
(process-send-string proc completion-snippet)