]> git.eshelyaron.com Git - emacs.git/commit
Unbreak Eglot, Jsonrpc as EIEIO inches closer to CLOS (bug#67480)
authorJoão Távora <joaotavora@gmail.com>
Wed, 29 Nov 2023 00:33:09 +0000 (18:33 -0600)
committerJoão Távora <joaotavora@gmail.com>
Wed, 29 Nov 2023 00:33:09 +0000 (18:33 -0600)
commit02d88e36e911e76842369e565ca2dae9a7922f7b
tree3f2fb36e9fbdfc1e99948af8f3e2fc53d806187a
parent7a5c91a2831602c3cd961158cf0b6a876852d7ac
Unbreak Eglot, Jsonrpc as EIEIO inches closer to CLOS (bug#67480)

EIEIO is an innacurate emulation of CLOS in many aspects and one of
them in accessor definition.  Before this commit

commit 6c47931a1ad4de4af3f147b9604169c2441100fe
Author: Brandon <brandon.irizarry@gmail.com>
Date:   Sat Nov 4 17:11:32 2023 -0400

    Make EIEIO ':accessor' behave like ':reader' when reading (bug#66938)

An :initform-less, non-:initarg'ed slot with be read using an
:accessor which would just return nil.  This is EIEIO specific of
course, but it made for (my) sloppy programming in jsonrpc.el and
eglot.el.

Tightening up the rules a bit meant these things broke and now I'm
fixing them.

* lisp/jsonrpc.el (jsonrpc-connection): Add a bunch of :initform nil
(jsonrpc-process-connection): Add a bunch of :initform nil

* lisp/progmodes/eglot.el (eglot-lsp-server): Add a bunch of :initform nil
lisp/jsonrpc.el
lisp/progmodes/eglot.el