From 73ad089abf55ac946a6776ffc431eac31627748d Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Fri, 22 Nov 2024 14:47:53 +0800 Subject: [PATCH] fix: Compile warnings --- lsp-protocol.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lsp-protocol.el b/lsp-protocol.el index f1d8fd90967..5169ae9671d 100644 --- a/lsp-protocol.el +++ b/lsp-protocol.el @@ -115,8 +115,10 @@ Example usage with `dash`. (if (special-variable-p key-sym) `((,key ,(intern (format "%s_" (symbol-name key-sym))))) key-sym))) - params) + params) &allow-other-keys) + (ignore ,@(-map (-lambda ((key)) + (intern (substring (symbol-name key) 1))) params)) ,(format "Constructs %s from `plist.' Allowed params: %s" interface (reverse (-map #'cl-first params))) (ignore ,@(-map (-lambda ((key))