]> git.eshelyaron.com Git - emacs.git/commit
Eglot: simplify capability-checking code
authorJoão Távora <joaotavora@gmail.com>
Tue, 21 Feb 2023 13:59:04 +0000 (13:59 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 22 Feb 2023 18:32:35 +0000 (18:32 +0000)
commit711a775ba761e2838a6f73bf4b3119f0fe412841
tree8c6f40d4639c0130329ecd4756dd9f2077595bfd
parentea7251ad6dfe3cfbdcea221a67c7b7d4fcbfebfa
Eglot: simplify capability-checking code

* lisp/progmodes/eglot.el (eglot--server-capable-or-lose): New helper.
(eglot--signal-textDocument/willSave)
(eglot--signal-textDocument/didSave): Tweak docstring.
(eglot--workspace-symbols, xref-backend-identifier-at-point)
(eglot-format, eglot-completion-at-point, eglot-rename)
(eglot-code-actions): Use new eglot--server-capable-or-lose.
lisp/progmodes/eglot.el