From 4144d9adc5cea0fb8c2bb9db217cc8fd2d625e02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 10 Aug 2018 01:42:01 +0100 Subject: [PATCH] * eglot.el (advice-add jsonrpc-request): add &allow-other-keys --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 3b1b364ac96..7f0e91dbbc2 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1048,7 +1048,8 @@ Records START, END and PRE-CHANGE-LENGTH locally." ;; bad idea, since that might lead to the request never having a ;; chance to run, because `jsonrpc-connection-ready-p'. (advice-add #'jsonrpc-request :before - (cl-function (lambda (_proc _method _params &key deferred _timeout) + (cl-function (lambda (_proc _method _params &key + deferred &allow-other-keys) (when (and eglot--managed-mode deferred) (eglot--signal-textDocument/didChange)))) '((name . eglot--signal-textDocument/didChange))) -- 2.39.2