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

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

[nongnu] elpa/inf-ruby 5fa2f80d4e 057/265: inf-ruby-completions: Pass _p


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 5fa2f80d4e 057/265: inf-ruby-completions: Pass _pry_ when it's defined
Date: Sat, 9 Jul 2022 21:59:13 -0400 (EDT)

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

    inf-ruby-completions: Pass _pry_ when it's defined
    
    Should improve the completions in the current Pry context.
---
 inf-ruby.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 04798a157e..ca09750fda 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -366,7 +366,8 @@ The reason for this is unknown. Remove this line from 
`completions'."
     (process-send-string
      proc
      (format (concat "if defined?(Pry.config) then "
-                     "completor = 
Pry.config.completer.build_completion_proc(binding)"
+                     "completor = Pry.config.completer"
+                     ".build_completion_proc(binding, defined?(_pry_) && 
_pry_)"
                      " elsif defined?(IRB::InputCompletor::CompletionProc) 
then "
                      "completor = IRB::InputCompletor::CompletionProc "
                      "end and "



reply via email to

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