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

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

[nongnu] elpa/inf-ruby 5b24985b0e 135/265: Check IRB is defined before u


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 5b24985b0e 135/265: Check IRB is defined before using it, fixes #64
Date: Sat, 9 Jul 2022 21:59:20 -0400 (EDT)

branch: elpa/inf-ruby
commit 5b24985b0e2573a52366b07832b3aa6919e2301d
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Commit: Iqbal Ansari <iqbalansari02@yahoo.com>

    Check IRB is defined before using it, fixes #64
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 5020231448..2449d836f4 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -336,7 +336,7 @@ See variable `inf-ruby-buffer'."
 Must not contain ruby meta characters.")
 
 (defconst inf-ruby-eval-binding
-  (concat "(IRB.conf[:MAIN_CONTEXT] && 
IRB.conf[:MAIN_CONTEXT].workspace.binding) || "
+  (concat "(defined?(IRB) && IRB.conf[:MAIN_CONTEXT] && 
IRB.conf[:MAIN_CONTEXT].workspace.binding) || "
           "(defined?(Pry) && Pry.toplevel_binding)"))
 
 (defconst ruby-eval-separator "")



reply via email to

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