From b43f131cc9234c3dd74056038b28e91a272c850e Mon Sep 17 00:00:00 2001 From: Andrea Richiardi Date: Fri, 23 Feb 2018 21:38:29 -0800 Subject: [PATCH] Use comint-send-string This one is solving the weird duplicating prompt issue. After the sanitation patch we were sending newline twice. Using comint-send-string because it is more low-level and does not modify the input string, which we are building correctly already (hopefully). --- inf-clojure.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inf-clojure.el b/inf-clojure.el index 730cf86..fbad183 100644 --- a/inf-clojure.el +++ b/inf-clojure.el @@ -342,7 +342,7 @@ customizations." (inf-clojure--set-repl-type proc) (let ((sanitized (inf-clojure--sanitize-command string))) (inf-clojure--log-string sanitized "----CMD->") - (comint-simple-send proc sanitized))) + (comint-send-string proc sanitized))) (defcustom inf-clojure-load-form "(clojure.core/load-file \"%s\")" "Format-string for building a Clojure expression to load a file.