From e472e0d6e1a10e68204aecdbeef4ff7c19e18280 Mon Sep 17 00:00:00 2001 From: Tianxiang Xiong Date: Sun, 17 Dec 2017 17:46:28 -0800 Subject: Remove unused parameter `pos` from `cider-eldoc-format-variable` See: https://travis-ci.org/clojure-emacs/cider/jobs/317868987#L1057 --- cider-eldoc.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cider-eldoc.el') diff --git a/cider-eldoc.el b/cider-eldoc.el index fca6a486..81926638 100644 --- a/cider-eldoc.el +++ b/cider-eldoc.el @@ -206,10 +206,11 @@ Otherwise, only the docstring is returned." ;; so we just display the docstring (t docstring)))) -(defun cider-eldoc-format-variable (thing pos eldoc-info) +(defun cider-eldoc-format-variable (thing eldoc-info) "Return the formatted eldoc string for a variable. -THING is the variable name. POS will always be 0 here. -ELDOC-INFO is a p-list containing the eldoc information." + +THING is the variable name. ELDOC-INFO is a p-list containing the eldoc +information." (let* ((ns (lax-plist-get eldoc-info "ns")) (symbol (lax-plist-get eldoc-info "symbol")) (docstring (lax-plist-get eldoc-info "docstring")) @@ -467,7 +468,7 @@ Only useful for interop forms. Clojure forms would be returned unchanged." (when eldoc-info (if (equal (cider-eldoc-thing-type eldoc-info) 'fn) (cider-eldoc-format-function thing pos eldoc-info) - (cider-eldoc-format-variable thing pos eldoc-info)))))) + (cider-eldoc-format-variable thing eldoc-info)))))) (defun cider-eldoc-setup () "Setup eldoc in the current buffer. -- cgit v1.2.3