summaryrefslogtreecommitdiff
path: root/elisp/geiser-eval.el
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
commit24fe735860a68542bb569bb59c712995f7bd1deb (patch)
tree98fe909286323ea0ce2134a481bf942d8d7e0584 /elisp/geiser-eval.el
parentb98b2cea6ca2a5b244bbb4270d1144e483e54455 (diff)
downloadgeiser-guile-24fe735860a68542bb569bb59c712995f7bd1deb.tar.gz
geiser-guile-24fe735860a68542bb569bb59c712995f7bd1deb.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.
Diffstat (limited to 'elisp/geiser-eval.el')
-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: