From: João Távora Date: Fri, 7 Dec 2018 22:43:13 +0000 (+0000) Subject: Handle array params to server notification or requests X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~369 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6d3310d83ca568daf4092b9118b872feef5d12b0;p=emacs.git Handle array params to server notification or requests * eglot.el (eglot-handle-notification): Remove extraneous id (eglot--connect): If params is an array, make it a list. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 45529307d69..05971e13cd2 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -429,7 +429,7 @@ treated as in `eglot-dbind'." (cl-defgeneric eglot-handle-request (server method &rest params) "Handle SERVER's METHOD request with PARAMS.") -(cl-defgeneric eglot-handle-notification (server method id &rest params) +(cl-defgeneric eglot-handle-notification (server method &rest params) "Handle SERVER's METHOD notification with PARAMS.") (cl-defgeneric eglot-execute-command (server command arguments) @@ -783,10 +783,8 @@ This docstring appeases checkdoc, that's all." :noquery t :stderr (get-buffer-create (format "*%s stderr*" readable-name)))))))) - (spread - (lambda (fn) - (lambda (&rest args) - (apply fn (append (butlast args) (car (last args))))))) + (spread (lambda (fn) (lambda (server method params) + (apply fn server method (append params nil))))) (server (apply #'make-instance class