From 34c603820df026565ced846a78b5d24ea288aecb Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Fri, 12 Nov 2010 01:29:04 +0100 Subject: Avoiding clobbering scm-strings with properties Apparently, (format "%s" sym) for a symbol read from a buffer where it's fontified, produces a string with the same fontification. Go figure. --- elisp/geiser-eval.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'elisp') diff --git a/elisp/geiser-eval.el b/elisp/geiser-eval.el index 72093cc..64b36ee 100644 --- a/elisp/geiser-eval.el +++ b/elisp/geiser-eval.el @@ -112,9 +112,8 @@ module-exports, autodoc, callers, callees and generic-methods.") (t (concat "(" (mapconcat 'geiser-eval--scheme-str code " ") ")")))) - ((symbolp code) (format "%s" code)) - ((stringp code) (format "%S" (substring-no-properties code))) - (t (format "%S" code)))) + ((symbolp code) (substring-no-properties (format "%s" code))) + (t (substring-no-properties (format "%S" code))))) ;;; Code sending: -- cgit v1.2.3