branch: elpa/inf-clojure
commit e52da46224117d3ba471eb3b0613f1e59cb0a61c
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Fix inf-clojure-connected-p to check for a live process
Previously it only checked whether inf-clojure-buffer was set,
which stays non-nil after the process dies. Now it also verifies
a live process exists via inf-clojure-proc.
---
inf-clojure.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index 3e55fe06db..d8add6c5a2 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -1143,7 +1143,8 @@ The prefix argument ARG can change the behavior of the
command:
(defun inf-clojure-connected-p ()
"Return t if inferior Clojure is currently connected, nil otherwise."
- (not (null inf-clojure-buffer)))
+ (and inf-clojure-buffer
+ (not (null (inf-clojure-proc t)))))
@@ -1571,7 +1572,6 @@ Return the number of nested sexp the point was over or
after."
(defun inf-clojure-eldoc ()
"Backend function for eldoc to show argument list in the echo area."
- ;; todo: this never gets unset once connected and is a lie
(when (and (inf-clojure-connected-p)
inf-clojure-enable-eldoc
;; don't clobber an error message in the minibuffer