From: João Távora Date: Tue, 1 Sep 2020 18:10:55 +0000 (+0100) Subject: Don't send json null (elisp nil) down the wire X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~200 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d506b0cd5a9afe68b66d6553520074d9c06c8ea;p=emacs.git Don't send json null (elisp nil) down the wire * eglot.el (eglot-initialization-options) (eglot-client-capabilities): Use eglot--{}, not nil. GitHub-reference: per https://github.com/joaotavora/eglot/issues/300 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index c752322b58a..60bc56e8aa6 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -508,7 +508,7 @@ treated as in `eglot-dbind'." (cl-defgeneric eglot-initialization-options (server) "JSON object to send under `initializationOptions'" - (:method (_s) nil)) ; blank default + (:method (_s) eglot--{})) ; blank default (cl-defgeneric eglot-register-capability (server method id &rest params) "Ask SERVER to register capability METHOD marked with ID." @@ -581,7 +581,7 @@ treated as in `eglot-dbind'." :rangeFormatting `(:dynamicRegistration :json-false) :rename `(:dynamicRegistration :json-false) :publishDiagnostics `(:relatedInformation :json-false)) - :experimental (list)))) + :experimental eglot--{}))) (defclass eglot-lsp-server (jsonrpc-process-connection) ((project-nickname