Skip to content

Commit e472e0d

Browse files
xiongtxbbatsov
authored andcommitted
Remove unused parameter pos from cider-eldoc-format-variable
See: https://travis-ci.org/clojure-emacs/cider/jobs/317868987#L1057
1 parent 95a168f commit e472e0d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cider-eldoc.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,11 @@ Otherwise, only the docstring is returned."
206206
;; so we just display the docstring
207207
(t docstring))))
208208

209-
(defun cider-eldoc-format-variable (thing pos eldoc-info)
209+
(defun cider-eldoc-format-variable (thing eldoc-info)
210210
"Return the formatted eldoc string for a variable.
211-
THING is the variable name. POS will always be 0 here.
212-
ELDOC-INFO is a p-list containing the eldoc information."
211+
212+
THING is the variable name. ELDOC-INFO is a p-list containing the eldoc
213+
information."
213214
(let* ((ns (lax-plist-get eldoc-info "ns"))
214215
(symbol (lax-plist-get eldoc-info "symbol"))
215216
(docstring (lax-plist-get eldoc-info "docstring"))
@@ -467,7 +468,7 @@ Only useful for interop forms. Clojure forms would be returned unchanged."
467468
(when eldoc-info
468469
(if (equal (cider-eldoc-thing-type eldoc-info) 'fn)
469470
(cider-eldoc-format-function thing pos eldoc-info)
470-
(cider-eldoc-format-variable thing pos eldoc-info))))))
471+
(cider-eldoc-format-variable thing eldoc-info))))))
471472

472473
(defun cider-eldoc-setup ()
473474
"Setup eldoc in the current buffer.

0 commit comments

Comments
 (0)