]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: fix signature's of Eglot's ElDoc functions
authorJoão Távora <joaotavora@gmail.com>
Mon, 20 Jan 2025 19:21:22 +0000 (19:21 +0000)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 Jan 2025 10:23:30 +0000 (11:23 +0100)
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)

lisp/progmodes/eglot.el

index 7f6a686a37100c43d8bc91700080656dce2a9790..a254d74c07f85ca8b3027c151fe35fbf702912b0 100644 (file)
@@ -3507,7 +3507,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)))
@@ -3531,7 +3531,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)))