]> git.eshelyaron.com Git - emacs.git/commit
Warn about suspicious interface usage at compile-time
authorJoão Távora <joaotavora@gmail.com>
Thu, 6 Dec 2018 18:26:17 +0000 (18:26 +0000)
committerJoão Távora <joaotavora@gmail.com>
Thu, 6 Dec 2018 18:40:21 +0000 (18:40 +0000)
commit60f45f0f30ae5ba13c913be25166baff30ccba5c
tree70b8e995e9a1628decc5b0996f52d6f584e413da
parent30ab4e3eedd0ca08e7d4d8ad5c303f58c40e9228
Warn about suspicious interface usage at compile-time

For fun, set eglot-strict-mode to '(disallow-non-standard-keys
enforce-required-keys enforce-optional-keys) when compiling, or just
use flymake-mode in eglot.el.

* eglot.el (eglot--lsp-interface-alist): Use in compile-time.
Order alphabetically.  Fix a few bugs.
(eglot-strict-mode): Disallow non-standard-keys when compiling.
Update docstring.
(eglot--keywordize-vars, eglot--check-interface): New
compile-time-helpers.
(eglot--dbind, eglot--dcase): Use new helpers.
lisp/progmodes/eglot.el