summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-12 01:29:04 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-12 01:29:04 +0100
commit34c603820df026565ced846a78b5d24ea288aecb (patch)
tree7cc92cff5e91d20836e2c2ec0b336e34f1d922cd
parent20394406701884324bec34d5bfe3bc9f8917a289 (diff)
downloadgeiser-34c603820df026565ced846a78b5d24ea288aecb.tar.gz
geiser-34c603820df026565ced846a78b5d24ea288aecb.tar.bz2
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.
-rw-r--r--elisp/geiser-eval.el5
1 files changed, 2 insertions, 3 deletions
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: