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

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

[nongnu] elpa/inf-ruby 4873a66a4d 054/265: inf-ruby-completions: Use 'th


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 4873a66a4d 054/265: inf-ruby-completions: Use 'then' instead of semicolons
Date: Sat, 9 Jul 2022 21:59:13 -0400 (EDT)

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

    inf-ruby-completions: Use 'then' instead of semicolons
    
    Because completion in debugger doesn't work otherwise.
---
 inf-ruby.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 4b1468b832..cbe3cc595b 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -365,10 +365,10 @@ The reason for this is unknown. Remove this line from 
`completions'."
     (set-process-filter proc (lambda (proc string) (setq kept (concat kept 
string))))
     (process-send-string
      proc
-     (format (concat "if defined?(Pry.config);"
+     (format (concat "if defined?(Pry.config) then "
                      "completor = 
Pry.config.completer.build_completion_proc(binding)"
-                     "elsif defined?(IRB::InputCompletor::CompletionProc);"
-                     "completor = IRB::InputCompletor::CompletionProc;"
+                     " elsif defined?(IRB::InputCompletor::CompletionProc) 
then "
+                     "completor = IRB::InputCompletor::CompletionProc "
                      "end;"
                      "puts completor.call('%s').compact if completor\n")
              (ruby-escape-single-quoted seed)))



reply via email to

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