summaryrefslogtreecommitdiff
path: root/cider-eldoc.el
diff options
context:
space:
mode:
authorTianxiang Xiong <tianxiang.xiong@gmail.com>2017-12-17 17:46:28 -0800
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2017-12-18 07:36:27 +0000
commite472e0d6e1a10e68204aecdbeef4ff7c19e18280 (patch)
tree363e7b2bbbfccb50168d73936fe2e81057939f08 /cider-eldoc.el
parent95a168ff3b2936407edb612b96b3f7fdd3d13687 (diff)
Remove unused parameter `pos` from `cider-eldoc-format-variable`
See: https://travis-ci.org/clojure-emacs/cider/jobs/317868987#L1057
Diffstat (limited to 'cider-eldoc.el')
-rw-r--r--cider-eldoc.el9
1 files changed, 5 insertions, 4 deletions
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.