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

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

[nongnu] elpa/crux 2cdf266 069/112: Insert literal s-exp instead of prin


From: ELPA Syncer
Subject: [nongnu] elpa/crux 2cdf266 069/112: Insert literal s-exp instead of printing in crux-eval-and-replace (#50)
Date: Wed, 11 Aug 2021 09:57:55 -0400 (EDT)

branch: elpa/crux
commit 2cdf266e42dd5937ad291c5a79070dec8e8e9a40
Author: diego <9020453+dieggsy@users.noreply.github.com>
Commit: Bozhidar Batsov <bozhidar.batsov@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

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