Skip to content

Commit f93ccf5

Browse files
author
Bozhidar Batsov
committed
Report Clojure's version including its qualifier
1 parent da02879 commit f93ccf5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* [#885](https://github.com/clojure-emacs/cider/issues/885): Translate nREPL-delivered map keys to symbols before adding as text properties.
1313
* Fix tab completion in `cider-read-from-minibuffer`.
1414
* [#894](https://github.com/clojure-emacs/cider/issues/894): Make it possible to enter any symbol with `cider-read-symbol-name`.
15+
* Report Clojure's version including its qualifier (e.g. `alpha4`) if present.
1516

1617
## 0.8.1 / 2014-11-20
1718

cider-interaction.el

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,9 @@ Signal an error if it is not supported."
188188
"Retrieve the underlying connection's Clojure version."
189189
(with-current-buffer (nrepl-current-connection-buffer)
190190
(when nrepl-versions
191-
(let* ((version-dict (nrepl-dict-get nrepl-versions "clojure"))
192-
(major (nrepl-dict-get version-dict "major"))
193-
(minor (nrepl-dict-get version-dict "minor"))
194-
(incremental (nrepl-dict-get version-dict "incremental")))
195-
(format "%s.%s.%s" major minor incremental)))))
191+
(-> nrepl-versions
192+
(nrepl-dict-get "clojure")
193+
(nrepl-dict-get "version-string")))))
196194

197195
(defun cider--nrepl-version ()
198196
"Retrieve the underlying connection's nREPL version."

0 commit comments

Comments
 (0)