diff options
| author | João Távora | 2025-01-20 19:21:22 +0000 |
|---|---|---|
| committer | João Távora | 2025-01-20 19:21:29 +0000 |
| commit | aa94e1c56c1b4aeb2e2c98f3b7ccbc354f50108e (patch) | |
| tree | ce3d403166e9b9464efe42b3e0ac7ed13db1f821 | |
| parent | 1143cf09a339d57051a4341103c9e342d8876649 (diff) | |
| download | emacs-aa94e1c56c1b4aeb2e2c98f3b7ccbc354f50108e.tar.gz emacs-aa94e1c56c1b4aeb2e2c98f3b7ccbc354f50108e.zip | |
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.
| -rw-r--r-- | lisp/progmodes/eglot.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 4d7ce970543..d7caa7d120e 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el | |||
| @@ -3468,7 +3468,7 @@ for which LSP on-type-formatting should be requested." | |||
| 3468 | ": " fpardoc))))) | 3468 | ": " fpardoc))))) |
| 3469 | (buffer-string)))) | 3469 | (buffer-string)))) |
| 3470 | 3470 | ||
| 3471 | (defun eglot-signature-eldoc-function (cb) | 3471 | (defun eglot-signature-eldoc-function (cb &rest _ignored) |
| 3472 | "A member of `eldoc-documentation-functions', for signatures." | 3472 | "A member of `eldoc-documentation-functions', for signatures." |
| 3473 | (when (eglot-server-capable :signatureHelpProvider) | 3473 | (when (eglot-server-capable :signatureHelpProvider) |
| 3474 | (let ((buf (current-buffer))) | 3474 | (let ((buf (current-buffer))) |
| @@ -3492,7 +3492,7 @@ for which LSP on-type-formatting should be requested." | |||
| 3492 | :deferred :textDocument/signatureHelp)) | 3492 | :deferred :textDocument/signatureHelp)) |
| 3493 | t)) | 3493 | t)) |
| 3494 | 3494 | ||
| 3495 | (defun eglot-hover-eldoc-function (cb) | 3495 | (defun eglot-hover-eldoc-function (cb &rest _ignored) |
| 3496 | "A member of `eldoc-documentation-functions', for hover." | 3496 | "A member of `eldoc-documentation-functions', for hover." |
| 3497 | (when (eglot-server-capable :hoverProvider) | 3497 | (when (eglot-server-capable :hoverProvider) |
| 3498 | (let ((buf (current-buffer))) | 3498 | (let ((buf (current-buffer))) |