From 4396a8cf2d27c03589a60e14c1eb95a3ba21fff8 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 23 Jun 2011 00:32:27 +0200 Subject: Avoid (read) breakage (fixes #33090) Autodoc was firing while the REPL was waiting for input of a (read) call, causing all kinds of misbehaviour. We now inhibit autodoc on sending a form for evaluation and re-inhibit it once a prompt is read back again. --- elisp/geiser-connection.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'elisp/geiser-connection.el') diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el index 12a9f46..d14fe0e 100644 --- a/elisp/geiser-connection.el +++ b/elisp/geiser-connection.el @@ -158,6 +158,10 @@ (and (not (geiser-con--connection-is-debugging con)) (geiser-con--connection-update-debugging con answer))) +(defun geiser-con--connection-eot-p (con txt) + (and txt + (string-match-p (geiser-con--connection-eot con) txt))) + (defun geiser-con--connection-close (con) (let ((tq (geiser-con--connection-tq con))) (and tq (tq-close tq)))) -- cgit v1.2.3