@janneke I know, but it's also a huge program that I cannot read entirely on my own. That's a concern that I have.
And also I don't love a few things from it.
I have talked with Prot about it and with some other emacs enthusiasts, and I think my goal of making my own simple text editor is the only way out.
I don't like much from GNU projects is many are emacs dependent, and overlook any other usecase.