summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.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-repl.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-repl.el')
-rw-r--r--elisp/geiser-repl.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 2117ff1..d99ace0 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -255,7 +255,7 @@ module command as a string")
prompt-rx
deb-prompt-rx))
(set (make-local-variable 'comint-prompt-regexp)
- (geiser-con--connection-eot geiser-repl--connection))
+ (geiser-con--combined-prompt prompt-rx deb-prompt-rx))
(apply 'make-comint-in-buffer `(,cname ,(current-buffer) ,address)))
(error (insert "Unable to start REPL:\n\n"
(error-message-string err) "\n")
@@ -284,6 +284,9 @@ module command as a string")
(let ((comint-input-filter (lambda (x) nil)))
(comint-send-input nil t))))
+(defun geiser-repl--send-silent (cmd)
+ (comint-redirect-results-list cmd ".+" 0))
+
;;; REPL history and clean-up: