emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot c1848c3 23/26: Handle array params to server noti


From: João Távora
Subject: [elpa] externals/eglot c1848c3 23/26: Handle array params to server notification or requests
Date: Sun, 9 Dec 2018 19:11:29 -0500 (EST)

branch: externals/eglot
commit c1848c3052429e52406ce585411b8c79b28e40cc
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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.
---
 eglot.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/eglot.el b/eglot.el
index 4552930..05971e1 100644
--- a/eglot.el
+++ b/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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]