summaryrefslogtreecommitdiff
path: root/nrepl-client.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2015-10-10 09:43:18 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2015-10-10 09:43:18 +0300
commit68f8a14f2f9c9271be96edafe776c2235cd67ee1 (patch)
tree587539c7a79822db4fffa4132698760014443e77 /nrepl-client.el
parente2e4237b18d85fa71b078cc7f89459fa4755fa43 (diff)
Clarify server port detecting code
Diffstat (limited to 'nrepl-client.el')
-rw-r--r--nrepl-client.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/nrepl-client.el b/nrepl-client.el
index e225495d..0dc046bb 100644
--- a/nrepl-client.el
+++ b/nrepl-client.el
@@ -1084,6 +1084,7 @@ the port, and the client buffer."
(goto-char (process-mark process))
(-when-let (win (get-buffer-window))
(set-window-point win (point))))))
+ ;; detect the port the server is listening on from its output
(when (string-match "nREPL server started on port \\([0-9]+\\)" output)
(let ((port (string-to-number (match-string 1 output))))
(message "nREPL server started on %s" port)