Skip to content

Commit 81044ba

Browse files
committed
[Fix #96] Use inf-clojure--send-string instead of comint-proc-query
It was due.
1 parent 1a71b5e commit 81044ba

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [#79](https://github.com/clojure-emacs/inf-clojure/pull/82): Eldoc error when running boot repl.
88
* [#83](https://github.com/clojure-emacs/inf-clojure/pull/85): No such namespace: complete.core in lumo REPL.
99
* [#93](https://github.com/clojure-emacs/inf-clojure/pull/93): Slow response from inf-clojure (completions, arglists, ...).
10+
* [#101](https://github.com/clojure-emacs/inf-clojure/pull/101): `inf-clojure-set-ns` hangs Emacs.
1011

1112
## 2.0.1 (2017-05-18)
1213

inf-clojure.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ prefix argument PROMPT-FOR-SYMBOL, it prompts for a symbol name."
932932
(let ((var (if prompt-for-symbol
933933
(car (inf-clojure-symprompt "Var doc" (inf-clojure-symbol-at-point)))
934934
(inf-clojure-symbol-at-point))))
935-
(comint-proc-query (inf-clojure-proc) (format (inf-clojure-var-doc-form) var))))
935+
(inf-clojure--send-string (inf-clojure-proc) (format (inf-clojure-var-doc-form) var))))
936936

937937
(defun inf-clojure-show-var-source (prompt-for-symbol)
938938
"Send a command to the inferior Clojure to give source for VAR.
@@ -942,7 +942,7 @@ prefix argument PROMPT-FOR-SYMBOL, it prompts for a symbol name."
942942
(let ((var (if prompt-for-symbol
943943
(car (inf-clojure-symprompt "Var source" (inf-clojure-symbol-at-point)))
944944
(inf-clojure-symbol-at-point))))
945-
(comint-proc-query (inf-clojure-proc) (format (inf-clojure-var-source-form) var))))
945+
(inf-clojure--send-string (inf-clojure-proc) (format (inf-clojure-var-source-form) var))))
946946

947947
;;;; Response parsing
948948
;;;; ================
@@ -1097,7 +1097,7 @@ prefix argument PROMPT-FOR-NS, it prompts for a namespace name."
10971097
(let ((ns (if prompt-for-ns
10981098
(car (inf-clojure-symprompt "Ns vars" (clojure-find-ns)))
10991099
(clojure-find-ns))))
1100-
(comint-proc-query (inf-clojure-proc) (format (inf-clojure-ns-vars-form) ns))))
1100+
(inf-clojure--send-string (inf-clojure-proc) (format (inf-clojure-ns-vars-form) ns))))
11011101

11021102
(defun inf-clojure-set-ns (prompt-for-ns)
11031103
"Set the ns of the inferior Clojure process to NS.
@@ -1110,13 +1110,13 @@ PROMPT-FOR-NS, it prompts for a namespace name."
11101110
(clojure-find-ns))))
11111111
(when (or (not ns) (equal ns ""))
11121112
(user-error "No namespace selected"))
1113-
(comint-proc-query (inf-clojure-proc) (format (inf-clojure-set-ns-form) ns))))
1113+
(inf-clojure--send-string (inf-clojure-proc) (format (inf-clojure-set-ns-form) ns))))
11141114

11151115
(defun inf-clojure-apropos (var)
11161116
"Send a form to the inferior Clojure to give apropos for VAR.
11171117
See variable `inf-clojure-apropos-form'."
11181118
(interactive (inf-clojure-symprompt "Var apropos" (inf-clojure-symbol-at-point)))
1119-
(comint-proc-query (inf-clojure-proc) (format (inf-clojure-apropos-form) var)))
1119+
(inf-clojure--send-string (inf-clojure-proc) (format (inf-clojure-apropos-form) var)))
11201120

11211121
(defun inf-clojure-macroexpand (&optional macro-1)
11221122
"Send a form to the inferior Clojure to give apropos for VAR.

0 commit comments

Comments
 (0)