[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/cider b11991245f: [Fix #3277] Fix cider-clojurescript-pres
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/cider b11991245f: [Fix #3277] Fix cider-clojurescript-present-p (#3280) |
Date: |
Tue, 6 Dec 2022 10:58:33 -0500 (EST) |
branch: elpa/cider
commit b11991245f6fb6e183757da66f47cc5d04221ae1
Author: Benjamin <38900087+benjamin-asdf@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
[Fix #3277] Fix cider-clojurescript-present-p (#3280)
---
cider.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/cider.el b/cider.el
index 116f6c7820..5031096f70 100644
--- a/cider.el
+++ b/cider.el
@@ -780,7 +780,12 @@ Generally you should not disable this unless you run into
some faulty check."
(defun cider-clojurescript-present-p ()
"Return non nil when ClojureScript is present."
- (nrepl-dict-get (cider-sync-tooling-eval "cljs.core/demunge") "value"))
+ (or
+ ;; This is nil for example for nbb.
+ (cider-library-present-p "cljs.core")
+ ;; demunge is not defined currently for normal cljs repls.
+ ;; So we end up making the two checks
+ (nrepl-dict-get (cider-sync-tooling-eval "cljs.core/demunge") "value")))
(defun cider-verify-clojurescript-is-present ()
"Check whether ClojureScript is present."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/cider b11991245f: [Fix #3277] Fix cider-clojurescript-present-p (#3280),
ELPA Syncer <=