Skip to content

[Fix #116] Set inf-clojure-buffer REPL type on detect #119

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Merged
merged 1 commit into from
Jan 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* [#83](https://github.com/clojure-emacs/inf-clojure/pull/85): No such namespace: complete.core in lumo REPL.
* [#93](https://github.com/clojure-emacs/inf-clojure/pull/93): Slow response from inf-clojure (completions, arglists, ...).
* [#101](https://github.com/clojure-emacs/inf-clojure/pull/101): `inf-clojure-set-ns` hangs Emacs.
* [#119](https://github.com/clojure-emacs/inf-clojure/pull/119): Set inf-clojure-buffer REPL type on detect.
* [#120](https://github.com/clojure-emacs/inf-clojure/pull/120): Send REPL string always, even if empty.

### New Features
Expand Down
7 changes: 4 additions & 3 deletions inf-clojure.el
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,10 @@ See http://blog.jorgenschaefer.de/2014/05/race-conditions-in-emacs-process-filte
(defun inf-clojure--set-repl-type (proc)
"Set the REPL type if has not already been set.
It requires a REPL PROC for inspecting the correct type."
(if (not inf-clojure-repl-type)
(setq inf-clojure-repl-type (inf-clojure--detect-repl-type proc))
inf-clojure-repl-type))
(with-current-buffer inf-clojure-buffer
(if (not inf-clojure-repl-type)
(setq inf-clojure-repl-type (inf-clojure--detect-repl-type proc))
inf-clojure-repl-type)))

(defun inf-clojure--single-linify (string)
"Convert a multi-line STRING in a single-line STRING.
Expand Down