summaryrefslogtreecommitdiff
path: root/elisp/geiser-connection.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2011-06-23 00:32:27 +0200
committerjao <jao@gnu.org>2011-06-23 00:32:27 +0200
commit830a0036f43341b2c5e1451ef1d7ed09b70768ec (patch)
treec252ed4afbbd6dcaa22b2203a00a28bf510109e3 /elisp/geiser-connection.el
parent2efa614b7de69a3dc4de66f81f0de3fb48110524 (diff)
downloadgeiser-chez-830a0036f43341b2c5e1451ef1d7ed09b70768ec.tar.gz
geiser-chez-830a0036f43341b2c5e1451ef1d7ed09b70768ec.tar.bz2
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.
Diffstat (limited to 'elisp/geiser-connection.el')
-rw-r--r--elisp/geiser-connection.el4
1 files changed, 4 insertions, 0 deletions
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))))