]> git.eshelyaron.com Git - emacs.git/commit
Simplify let-bindings in eglot-tests
authorBasil L. Contovounesios <contovob@tcd.ie>
Sun, 9 Apr 2023 23:33:13 +0000 (00:33 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sun, 9 Apr 2023 23:33:13 +0000 (00:33 +0100)
commitb5c5e923dba5c5a7b064ce3371d13e165b5caa9e
tree3fb2324a872a80c7a40a42aef090fbdc305d9025
parentf09f571b3cadec029855f41a4b9533ac97061485
Simplify let-bindings in eglot-tests

* test/lisp/progmodes/eglot-tests.el (eglot--call-with-fixture):
Don't allow fixture elements to be symbol-value pairs (bug#61637).
This feature was used in only one test.  The same effect can be
achieved in a simpler way, and closer to the body, with plain
let-bindings.
(eglot--with-fixture): Adapt docstring accordingly.
(eglot-test-ensure): Adapt c-mode-hook binding accordingly.
(eglot--cleanup-after-test): Remove symbol restoring logic.
test/lisp/progmodes/eglot-tests.el