From 1ef2ad809922aff9ff4c50ea61c39dfd1c5dd7e0 Mon Sep 17 00:00:00 2001 From: et2010 Date: Thu, 29 Mar 2018 20:24:15 +0800 Subject: [PATCH] lispy-eval-outline: replace % with %% in results When results contain %, an error "not enough arguments for format string" would be issued. This should fix it. --- lispy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lispy.el b/lispy.el index 8730af41..dfc0a054 100644 --- a/lispy.el +++ b/lispy.el @@ -4195,7 +4195,7 @@ Return the result of the last evaluation as a string." (goto-char (car bnd)) res) (t - (message res))))) + (message (replace-regexp-in-string "%" "%%" res)))))) (defun lispy-message (str &optional popup) "Display STR in the echo area.