summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-04-10 16:06:47 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-04-10 16:06:47 +0200
commitd32d4e1a4480f236089fb27ce5f5c4968f1119e7 (patch)
tree7d4705ce4e7cc48a5c9a9aec9645d26d5805605a /elisp
parentc0c3723b1b5ee54e977a25a2f8a409a8071f1976 (diff)
downloadgeiser-chez-d32d4e1a4480f236089fb27ce5f5c4968f1119e7.tar.gz
geiser-chez-d32d4e1a4480f236089fb27ce5f5c4968f1119e7.tar.bz2
Fix for evaluations returning no result
Such as (values), which produce a retort of the form ((result) ...), which has nothing wrong in it! Thanks to Diogo.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-connection.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el
index d14fe0e..69dd6a9 100644
--- a/elisp/geiser-connection.el
+++ b/elisp/geiser-connection.el
@@ -1,6 +1,6 @@
;;; geiser-connection.el -- talking to a scheme process
-;; Copyright (C) 2009, 2010, 2011 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2013 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -201,7 +201,7 @@
`((error (key . geiser-debugger))
(output . ,answer))
(condition-case err
- (let* ((start (string-match "((\\(?:result\\|error\\) " answer))
+ (let* ((start (string-match "((\\(?:result)?\\|error\\) " answer))
(form (or (and start (car (read-from-string answer start)))
`((error (key . retort-syntax))
(output . ,answer)))))