branch: elpa/inf-clojure
commit 6758a31ead1905f8efef43b51e2e1b2a045c470a
Author: Syohei YOSHIDA <syo...@gmail.com>
Commit: Syohei YOSHIDA <syo...@gmail.com>

    Fix for older Emacs
    
    Because 'if-let' is defined only on development Emacs(version 25).
---
 inf-clojure.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/inf-clojure.el b/inf-clojure.el
index 5bcf39f..01ae689 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -568,8 +568,9 @@ See variable `inf-clojure-arglist-command'."
 (defun inf-clojure-show-arglist (fn)
   "Show the arglist for function FN in the mini-buffer."
   (interactive (inf-clojure-symprompt "Arglist" (inf-clojure-fn-called-at-pt)))
-  (if-let ((eldoc (inf-clojure-arglist fn)))
-      (message "%s: %s" fn eldoc)))
+  (let ((eldoc (inf-clojure-arglist fn)))
+    (when eldoc
+      (message "%s: %s" fn eldoc))))
 
 (defun inf-clojure-show-ns-vars (ns)
   "Send a query to the inferior Clojure for the public vars in NS.

Reply via email to