Skip to content

Commit 6758a31

Browse files
committed
Fix for older Emacs
Because 'if-let' is defined only on development Emacs(version 25).
1 parent 701c27b commit 6758a31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inf-clojure.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,9 @@ See variable `inf-clojure-arglist-command'."
568568
(defun inf-clojure-show-arglist (fn)
569569
"Show the arglist for function FN in the mini-buffer."
570570
(interactive (inf-clojure-symprompt "Arglist" (inf-clojure-fn-called-at-pt)))
571-
(if-let ((eldoc (inf-clojure-arglist fn)))
572-
(message "%s: %s" fn eldoc)))
571+
(let ((eldoc (inf-clojure-arglist fn)))
572+
(when eldoc
573+
(message "%s: %s" fn eldoc))))
573574

574575
(defun inf-clojure-show-ns-vars (ns)
575576
"Send a query to the inferior Clojure for the public vars in NS.

0 commit comments

Comments
 (0)