Eglot: fix signature's of Eglot's ElDoc functions

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.
This commit is contained in:
João Távora 2025-01-20 19:21:22 +00:00
parent 1143cf09a3
commit aa94e1c56c

View file

@ -3468,7 +3468,7 @@ for which LSP on-type-formatting should be requested."
": " 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)))
@ -3492,7 +3492,7 @@ for which LSP on-type-formatting should be requested."
: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)))