These functions are specified to be passed at least one
argument, so our implementation must accept an arbitrary number
of arguments.
* lisp/progmodes/eglot.el (eglot-signature-eldoc-function)
(eglot-hover-eldoc-function): Fix signature.
(cherry picked from commit
aa94e1c56c1b4aeb2e2c98f3b7ccbc354f50108e)
": " fpardoc)))))
(buffer-string))))
-(defun eglot-signature-eldoc-function (cb)
+(defun eglot-signature-eldoc-function (cb &rest _ignored)
"A member of `eldoc-documentation-functions', for signatures."
(when (eglot-server-capable :signatureHelpProvider)
(let ((buf (current-buffer)))
:deferred :textDocument/signatureHelp))
t))
-(defun eglot-hover-eldoc-function (cb)
+(defun eglot-hover-eldoc-function (cb &rest _ignored)
"A member of `eldoc-documentation-functions', for hover."
(when (eglot-server-capable :hoverProvider)
(let ((buf (current-buffer)))