Skip to content

Commit 1285206

Browse files
committed
Disable pretty print when fetching lumo arglists
It hacks like a hack.
1 parent 74e8423 commit 1285206

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inf-clojure.el

+4-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,10 @@ If you are using REPL types, it will pickup the most approapriate
703703
(define-obsolete-variable-alias 'inf-clojure-arglist-command 'inf-clojure-arglists-form "2.0.0")
704704

705705
(defcustom inf-clojure-arglists-form-lumo
706-
"(pr-str (lumo.repl/get-arglists \"%s\"))"
706+
"(let [old-value lumo.repl/*pprint-results*]
707+
(set! lumo.repl/*pprint-results* false)
708+
(js/setTimeout #(set! lumo.repl/*pprint-results* old-value) 0)
709+
(lumo.repl/get-arglists \"%s\"))"
707710
"Lumo form to query inferior Clojure for a function's arglists."
708711
:type 'string
709712
:package-version '(inf-clojure . "2.0.0"))

0 commit comments

Comments
 (0)