branch: elpa/crux
commit 2cdf266e42dd5937ad291c5a79070dec8e8e9a40
Author: diego <9020453+dieg...@users.noreply.github.com>
Commit: Bozhidar Batsov <bozhidar.bat...@gmail.com>

    Insert literal s-exp instead of printing in crux-eval-and-replace (#50)
    
    This makes it so that the sexp is replaced with the actual value. 
Otherwise, you get a printed version that isn't actually that useful in elisp.
---
 crux.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crux.el b/crux.el
index 79c3227..37b520d 100644
--- a/crux.el
+++ b/crux.el
@@ -361,7 +361,7 @@ point reaches the beginning or end of the buffer, stop 
there."
   (interactive)
   (let ((value (eval (elisp--preceding-sexp))))
     (backward-kill-sexp)
-    (insert (format "%s" value))))
+    (insert (format "%S" value))))
 
 (defun crux-recompile-init ()
   "Byte-compile all your dotfiles again."

Reply via email to