[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/eglot2emacs ef0da9414e 060/120: Make eglot--plist-keys a simple
From: |
João Távora |
Subject: |
feature/eglot2emacs ef0da9414e 060/120: Make eglot--plist-keys a simple (non-map.el) helper again |
Date: |
Thu, 20 Oct 2022 07:16:53 -0400 (EDT) |
branch: feature/eglot2emacs
commit ef0da9414e148cafef7443660ac90c571850b629
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Make eglot--plist-keys a simple (non-map.el) helper again
This removes a nagging compilation warning when developing on Emacs
master.
There's not much point in depending on map.el just for this util. And
there' snot much point in making eglot--plist-keys go through a
generic dispatching mechanism when we happen to know the thing
being dispatched
* eglot.el (eglot--plist-keys): Define in helpers section.
---
lisp/progmodes/eglot.el | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 86e798fabd..f739a0d34d 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1550,6 +1550,9 @@ and just return it. PROMPT shouldn't end with a question
mark."
"Tell if SERVER's project root is `file-remote-p'."
(file-remote-p (project-root (eglot--project server))))
+(defun eglot--plist-keys (plist) "Get keys of a plist."
+ (cl-loop for (k _v) on plist by #'cddr collect k))
+
;;; Minor modes
;;;
@@ -3078,13 +3081,6 @@ If NOERROR, return predicate, else erroring function."
(make-obsolete-variable 'eglot--managed-mode-hook
'eglot-managed-mode-hook "1.6")
-
-(if (< emacs-major-version 27)
- (defun eglot--plist-keys (plist)
- (cl-loop for (k _v) on plist by #'cddr collect k))
- ;; Make into an obsolete alias once we drop support for Emacs 26.
- (defalias 'eglot--plist-keys #'map-keys))
-
(provide 'eglot)
;; Local Variables:
- feature/eglot2emacs 29f2ec2471 071/120: Consider diagnostic.code when generating flymake diagnostics, (continued)
- feature/eglot2emacs 29f2ec2471 071/120: Consider diagnostic.code when generating flymake diagnostics, João Távora, 2022/10/20
- feature/eglot2emacs cc5d1a5a72 091/120: Always default eglot-strict-mode to nil, João Távora, 2022/10/20
- feature/eglot2emacs e74e199912 093/120: Add out-of-box support for perl lsp server, João Távora, 2022/10/20
- feature/eglot2emacs d2e842bbf5 098/120: Prefer documentchanges to changes in server-initiated edits, João Távora, 2022/10/20
- feature/eglot2emacs e5f77f8ca5 100/120: Rework readme.md about workspace configuration again, João Távora, 2022/10/20
- feature/eglot2emacs ec7d63cbe7 105/120: Don't return hash tables from e-w-configuration-plist, João Távora, 2022/10/20
- feature/eglot2emacs 1780b93d66 111/120: Make clojure-lsp handle more major modes at once, João Távora, 2022/10/20
- feature/eglot2emacs 0848387fa2 115/120: Fix docstring of eglot-list-connections-mode, João Távora, 2022/10/20
- feature/eglot2emacs cf0ba0197a 007/120: Add support for the mint language server, João Távora, 2022/10/20
- feature/eglot2emacs ed9800041e 029/120: * eglot.el (eglot--connect): display seconds on timeout., João Távora, 2022/10/20
- feature/eglot2emacs ef0da9414e 060/120: Make eglot--plist-keys a simple (non-map.el) helper again,
João Távora <=
- feature/eglot2emacs 5e9d78f9cf 068/120: Ensure non-null :settings param in didchangeconfiguration notif, João Távora, 2022/10/20
- feature/eglot2emacs 73f4555a0d 067/120: Add out-of-box support for futhark lsp server, João Távora, 2022/10/20
- feature/eglot2emacs 50ff73d753 073/120: Use format string instead of concat, João Távora, 2022/10/20
- feature/eglot2emacs 68fbcbd620 076/120: Reduce memory footprint of eglot--{}, João Távora, 2022/10/20
- feature/eglot2emacs 3c6356b037 088/120: Appease byte-compiler warnings about wrong use of quotes, João Távora, 2022/10/20
- feature/eglot2emacs b6e041a24b 090/120: Fix embarrassing paren-matching blunder in eglot.el, João Távora, 2022/10/20
- feature/eglot2emacs dd017359e9 097/120: Add support for jedi-language-server (again), João Távora, 2022/10/20
- feature/eglot2emacs add2926de8 114/120: Make eglot-code-actions usable non-interactively, João Távora, 2022/10/20
- feature/eglot2emacs eb9d6281b5 117/120: Do use eglot-connect-timeout if eglot-sync-connect is t, João Távora, 2022/10/20
- feature/eglot2emacs 0186faf2a1 120/120: ; Merge from https://github.com/joaotavora/eglot, João Távora, 2022/10/20