Skip to content

Commit 7b2fcd7

Browse files
arichiardibbatsov
authored andcommitted
Revive inf-clojure-apropos
The function signature was broken, also update the docstring.
1 parent f4478ad commit 7b2fcd7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

inf-clojure.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,11 +1228,12 @@ PROMPT-FOR-NS, it prompts for a namespace name."
12281228
(user-error "No namespace selected"))
12291229
(inf-clojure--send-string (inf-clojure-proc) (format (inf-clojure-set-ns-form) ns))))
12301230

1231-
(defun inf-clojure-apropos ()
1231+
(defun inf-clojure-apropos (expr)
12321232
"Send an expression to the inferior Clojure for apropos.
1233-
See variable `inf-clojure-apropos-form'."
1233+
EXPR can be either a regular expression or a stringable
1234+
thing. See variable `inf-clojure-apropos-form'."
12341235
(interactive (inf-clojure-symprompt "Var apropos" (inf-clojure-symbol-at-point)))
1235-
(inf-clojure--send-string (inf-clojure-proc) (format (inf-clojure-apropos-form) var)))
1236+
(inf-clojure--send-string (inf-clojure-proc) (format (inf-clojure-apropos-form) expr)))
12361237

12371238
(defun inf-clojure-macroexpand (&optional macro-1)
12381239
"Send a form to the inferior Clojure for macro expansion.

0 commit comments

Comments
 (0)