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

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

[nongnu] elpa/inf-ruby bae94383d5 256/265: Stop wrapping the evaluation


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby bae94383d5 256/265: Stop wrapping the evaluation result in quotes
Date: Sat, 9 Jul 2022 21:59:31 -0400 (EDT)

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

    Stop wrapping the evaluation result in quotes
    
    The type of VALUE is string, so %S ends up printing it as a string.
    
    We want it contents displayed instead, like
    
      => [2, 3, 4]
    
    rather than
    
      => "[2, 3, 4]"
    
    #153
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 144900c62e..073c13c854 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -622,7 +622,7 @@ This function also removes itself from `pre-command-hook'."
 
 (defun inf-ruby--eval-overlay (value)
   "Make overlay for VALUE at POINT."
-  (inf-ruby--make-result-overlay (format "%S" value) (point) 'command)
+  (inf-ruby--make-result-overlay value (point) 'command)
   value)
 
 (defun ruby-print-result (&optional insert)



reply via email to

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