Skip to content

Commit a3306c9

Browse files
arichiardibbatsov
authored andcommitted
Further fix arglists in lumo
It actually removes the post processing and adds a pr-str in `inf-clojure-arglists-form-lumo`.
1 parent 2341aa2 commit a3306c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inf-clojure.el

+3-2
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ If you are using REPL types, it will pickup the most approapriate
680680
(define-obsolete-variable-alias 'inf-clojure-arglist-command 'inf-clojure-arglists-form "2.0.0")
681681

682682
(defcustom inf-clojure-arglists-form-lumo
683-
"(lumo.repl/get-arglists \"%s\")"
683+
"(pr-str (lumo.repl/get-arglists \"%s\"))"
684684
"Lumo form to query inferior Clojure for a function's arglists."
685685
:type 'string
686686
:package-version '(inf-clojure . "2.0.0"))
@@ -958,7 +958,8 @@ See variable `inf-clojure-arglists-form'."
958958
(arglists-data (read arglists-result)))
959959
(cond
960960
((null arglists-data) nil)
961-
((listp arglists-data) (string-trim (inf-clojure--single-linify arglists-result))))))
961+
((stringp arglists-data) arglists-data)
962+
((listp arglists-data) arglists-result))))
962963

963964
(defun inf-clojure-show-arglists (prompt-for-symbol)
964965
"Show the arglists for function FN in the mini-buffer.

0 commit comments

Comments
 (0)