diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-06-16 22:35:21 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-06-16 22:35:21 +0200 |
commit | 1dd9eeb3cb80260738a5683e9a41b6f66acd7460 (patch) | |
tree | 3a4d2cb25a6f42fb5644bd084e09d0b455c3f624 /elisp/geiser-connection.el | |
parent | 3c8e22e4aaa3cbac830d4a37af6db3395082fb66 (diff) | |
download | geiser-chez-1dd9eeb3cb80260738a5683e9a41b6f66acd7460.tar.gz geiser-chez-1dd9eeb3cb80260738a5683e9a41b6f66acd7460.tar.bz2 |
Better parsing of scheme retorts in the Emacs end.
Diffstat (limited to 'elisp/geiser-connection.el')
-rw-r--r-- | elisp/geiser-connection.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el index 33579f6..33668e0 100644 --- a/elisp/geiser-connection.el +++ b/elisp/geiser-connection.el @@ -160,10 +160,14 @@ (defun geiser-con--comint-buffer-form () (with-current-buffer (geiser-con--comint-buffer) - (geiser-syntax--prepare-scheme-for-elisp-reader) (condition-case nil - (let ((form (read (current-buffer)))) - (if (listp form) form (error))) + (progn + (goto-char (point-min)) + (re-search-forward "((\\(result\\|error\\) ") + (goto-char (match-beginning 0)) + (geiser-syntax--prepare-scheme-for-elisp-reader) + (let ((form (read (current-buffer)))) + (if (listp form) form (error)))) (error `((error (key . geiser-con-error) (msg . ,(buffer-string)))))))) (defun geiser-con--process-next (con) |