summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-07 00:32:22 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-07 00:32:22 +0200
commit841681e4360b08820bf1e9e0b260a83139d30911 (patch)
tree9be3b81a8906715beae59d738158adffb0af5286
parent34cfc967b6d377c4c2a795aba692a3652f21bb49 (diff)
downloadgeiser-chez-841681e4360b08820bf1e9e0b260a83139d30911.tar.gz
geiser-chez-841681e4360b08820bf1e9e0b260a83139d30911.tar.bz2
Guile: fix bug in error display
-rw-r--r--elisp/geiser-guile.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index 640ef02..15c40cc 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -152,8 +152,9 @@ This function uses `geiser-guile-init-file' if it exists."
(defun geiser-guile--display-error (module key msg)
(newline)
- (save-excursion (insert msg))
- (geiser-edit--buttonize-files)
+ (when (stringp msg)
+ (save-excursion (insert msg))
+ (geiser-edit--buttonize-files))
(and (not key) msg (not (zerop (length msg)))))