]> git.eshelyaron.com Git - emacs.git/commitdiff
Default eglot-handle-notifictiona|request must &allow-other-keys
authorJoão Távora <joaotavora@gmail.com>
Fri, 3 Aug 2018 08:14:42 +0000 (09:14 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 3 Aug 2018 08:23:58 +0000 (09:23 +0100)
* eglot.el (eglot-handle-notification, eglot-handle-request): Add
&allow-other-keys

lisp/progmodes/eglot.el

index 58efc1668633afee7462cd6996ec99c6ea2db1c3..7e825d6746a763647b1df3fe3f0371dcde66b5b8 100644 (file)
@@ -872,12 +872,12 @@ Uses THING, FACE, DEFS and PREPEND."
 ;;; Protocol implementation (Requests, notifications, etc)
 ;;;
 (cl-defmethod eglot-handle-notification
-  (_server method &key)
+  (_server method &key &allow-other-keys)
   "Handle unknown notification"
   (eglot--warn "Server sent unknown notification method `%s'" method))
 
 (cl-defmethod eglot-handle-request
-  (_server method &key)
+  (_server method &key &allow-other-keys)
   "Handle unknown request"
   (jsonrpc-error "Unknown request method `%s'" method))