emacs-diffs
[Top][All Lists]
Advanced

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

feature/jsonrpc-support-dap f6dc2cff995: Fix compilation warnings in egl


From: João Távora
Subject: feature/jsonrpc-support-dap f6dc2cff995: Fix compilation warnings in eglot-tests.el
Date: Sun, 10 Dec 2023 21:26:29 -0500 (EST)

branch: feature/jsonrpc-support-dap
commit f6dc2cff9952197c3272c7a4f5e435d3e411fed6
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Fix compilation warnings in eglot-tests.el
    
    * test/lisp/progmodes/eglot-tests.el (eglot--sniffing): Fix
    compilation warning.s
---
 test/lisp/progmodes/eglot-tests.el | 38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)

diff --git a/test/lisp/progmodes/eglot-tests.el 
b/test/lisp/progmodes/eglot-tests.el
index 507c6b4fea5..996ff276e68 100644
--- a/test/lisp/progmodes/eglot-tests.el
+++ b/test/lisp/progmodes/eglot-tests.el
@@ -210,26 +210,24 @@ directory hierarchy."
            (advice-add
             #'jsonrpc--log-event :before
             (lambda (_proc message &optional origin subtype)
-              (cl-destructuring-bind (&key method id _error &allow-other-keys)
-                  message
-                (let ((req-p (eq subtype 'request))
-                      (notif-p (eq subtype 'notification))
-                      (reply-p (eql subtype 'reply)))
-                  (cond
-                   ((eq origin 'server)
-                    (cond (req-p ,(when server-requests
-                                    `(push message ,server-requests)))
-                          (notif-p ,(when server-notifications
-                                      `(push message ,server-notifications)))
-                          (reply-p ,(when server-replies
-                                      `(push message ,server-replies)))))
-                   ((eq origin 'client)
-                    (cond (req-p ,(when client-requests
-                                    `(push message ,client-requests)))
-                          (notif-p ,(when client-notifications
-                                      `(push message ,client-notifications)))
-                          (reply-p ,(when client-replies
-                                      `(push message ,client-replies)))))))))
+              (let ((req-p (eq subtype 'request))
+                    (notif-p (eq subtype 'notification))
+                    (reply-p (eql subtype 'reply)))
+                (cond
+                 ((eq origin 'server)
+                  (cond (req-p ,(when server-requests
+                                  `(push message ,server-requests)))
+                        (notif-p ,(when server-notifications
+                                    `(push message ,server-notifications)))
+                        (reply-p ,(when server-replies
+                                    `(push message ,server-replies)))))
+                 ((eq origin 'client)
+                  (cond (req-p ,(when client-requests
+                                  `(push message ,client-requests)))
+                        (notif-p ,(when client-notifications
+                                    `(push message ,client-notifications)))
+                        (reply-p ,(when client-replies
+                                    `(push message ,client-replies))))))))
             '((name . ,log-event-ad-sym)))
            ,@body)
        (advice-remove #'jsonrpc--log-event ',log-event-ad-sym))))



reply via email to

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