summaryrefslogtreecommitdiff
path: root/elisp/geiser-connection.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-12 02:20:14 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-11-12 02:20:14 +0100
commite13172c2855cc7fcb30c6dac231210c6e8534b18 (patch)
treee9c5a1746535bac89e0f816c9c4851d61d30b97f /elisp/geiser-connection.el
parentdc8155b5d0e5c533a1fc6cb64399e8cccd7c1716 (diff)
downloadgeiser-chez-e13172c2855cc7fcb30c6dac231210c6e8534b18.tar.gz
geiser-chez-e13172c2855cc7fcb30c6dac231210c6e8534b18.tar.bz2
Better EOT token for more robust communication
Diffstat (limited to 'elisp/geiser-connection.el')
-rw-r--r--elisp/geiser-connection.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el
index c50e207..324532b 100644
--- a/elisp/geiser-connection.el
+++ b/elisp/geiser-connection.el
@@ -70,14 +70,14 @@
;;; Connection datatype:
+(defun geiser-con--combined-prompt (prompt debug)
+ (format "\\(%s%s\\)" prompt (if debug (format "\\|%s" debug) "")))
+
(defun geiser-con--make-connection (proc prompt debug-prompt)
(list :geiser-connection
(cons :tq (tq-create proc))
- (cons :eot (format "\\(%s%s\\)"
- prompt
- (if debug-prompt
- (format "\\|%s" debug-prompt)
- "")))
+ (cons :eot (format "\0\n%s"
+ (geiser-con--combined-prompt prompt debug-prompt)))
(cons :prompt prompt)
(cons :debug-prompt debug-prompt)
(cons :count 0)