From 059025eeae73f2b91e2db157b3aa84c91f50f422 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Wed, 10 Apr 2013 16:06:47 +0200 Subject: 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. --- elisp/geiser-connection.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'elisp/geiser-connection.el') 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))))) -- cgit v1.2.3