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

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

[nongnu] elpa/inf-ruby d18e63e44e 102/265: Not real need for the third a


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby d18e63e44e 102/265: Not real need for the third argument
Date: Sat, 9 Jul 2022 21:59:17 -0400 (EDT)

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

    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)



reply via email to

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