From e13172c2855cc7fcb30c6dac231210c6e8534b18 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Fri, 12 Nov 2010 02:20:14 +0100 Subject: Better EOT token for more robust communication --- elisp/geiser-connection.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'elisp/geiser-connection.el') 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) -- cgit v1.2.3