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.
"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))
+
\f
;;; Minor modes
;;;
(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: