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
commitb95b4870027fc8bde3ccd550e8e68b58070e4e34 (patch)
tree89850fd95472dfcda6d4f686b8a6443432ec8578
parent4766cbcbd3c7e3dbe4a090352d9d8cb2a5916559 (diff)
downloadgeiser-guile-b95b4870027fc8bde3ccd550e8e68b58070e4e34.tar.gz
geiser-guile-b95b4870027fc8bde3ccd550e8e68b58070e4e34.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)))))