@@ -228,8 +228,8 @@ See http://blog.jorgenschaefer.de/2014/05/race-conditions-in-emacs-process-filte
228
228
(when (not inf-clojure--repl-type-lock)
229
229
(let ((inf-clojure--repl-type-lock t ))
230
230
(cond
231
- ((inf-clojure--lumo- p proc) 'lumo )
232
- ((inf-clojure--planck- p proc) 'planck )
231
+ ((inf-clojure--some-response- p proc inf-clojure--lumo-repl-form ) 'lumo )
232
+ ((inf-clojure--some-response- p proc inf-clojure--planck-repl-form ) 'planck )
233
233
(t 'clojure )))))
234
234
235
235
(defun inf-clojure--set-repl-type (proc )
@@ -1307,35 +1307,20 @@ for evaluation, therefore FORM should not include it."
1307
1307
; ;;; ====
1308
1308
1309
1309
(defcustom inf-clojure--lumo-repl-form
1310
- " (js/global.hasOwnProperty \" $$LUMO_GLOBALS \" )"
1310
+ " (find-ns 'lumo.repl )"
1311
1311
" Form to invoke in order to verify that we launched a Lumo REPL."
1312
1312
:type 'string
1313
1313
:package-version '(inf-clojure . " 2.0.0" ))
1314
1314
1315
- (defalias 'inf-clojure--lumo-p
1316
- (apply-partially 'inf-clojure--response-match-p
1317
- inf-clojure--lumo-repl-form
1318
- (lambda (string )
1319
- (string-match-p " \\ Ca*true\\ Ca*" string)))
1320
- " Ascertain that PROC is a Lumo REPL." )
1321
-
1322
-
1323
1315
; ;;; Planck
1324
1316
; ;;; ====
1325
1317
1326
1318
(defcustom inf-clojure--planck-repl-form
1327
- " (js/global.hasOwnProperty \" PLANCK_VERSION \" )"
1319
+ " (find-ns 'planck.repl )"
1328
1320
" Form to invoke in order to verify that we launched a Planck REPL."
1329
1321
:type 'string
1330
1322
:package-version '(inf-clojure . " 2.0.0" ))
1331
1323
1332
- (defalias 'inf-clojure--planck-p
1333
- (apply-partially 'inf-clojure--response-match-p
1334
- inf-clojure--planck-repl-form
1335
- (lambda (string )
1336
- (string-match-p " \\ Ca*true\\ Ca*" string)))
1337
- " Ascertain that PROC is a Planck REPL." )
1338
-
1339
1324
(provide 'inf-clojure )
1340
1325
1341
1326
; ; Local variables:
0 commit comments