From b4f8a8979803b2e3d630f16ca7b194811d72ad69 Mon Sep 17 00:00:00 2001 From: Andrea Richiardi Date: Fri, 23 Feb 2018 21:09:04 -0800 Subject: [PATCH] Set buffer local comint-input-sender-no-newline Now that the sanitation code appends a final newline to the command we need to tell comint not to add one. --- inf-clojure.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inf-clojure.el b/inf-clojure.el index c44694b..ad09f8e 100644 --- a/inf-clojure.el +++ b/inf-clojure.el @@ -177,6 +177,9 @@ The following commands are available: \\{inf-clojure-minor-mode-map}" :lighter "" :keymap inf-clojure-minor-mode-map + ;; it is not originally buffer local + ;; https://github.com/emacs-mirror/emacs/blob/master/lisp/comint.el#L415 + (setq-local comint-input-sender-no-newline t) (setq comint-input-sender 'inf-clojure--send-string) (inf-clojure-eldoc-setup) (make-local-variable 'completion-at-point-functions) @@ -526,6 +529,9 @@ If `comint-use-prompt-regexp' is nil (the default), \\[comint-insert-input] on o Paragraphs are separated only by blank lines. Semicolons start comments. If you accidentally suspend your process, use \\[comint-continue-subjob] to continue it." + ;; it is not originally buffer local + ;; https://github.com/emacs-mirror/emacs/blob/master/lisp/comint.el#L415 + (setq-local comint-input-sender-no-newline t) (setq comint-input-sender 'inf-clojure--send-string) (setq comint-prompt-regexp inf-clojure-comint-prompt-regexp) (setq mode-line-process '(":%s"))