The definitive book on implementing an EMACS, as of a long time ago, is Craig A. Finseth's The Craft of Text Editing -or- Emacs for the Modern Worldhttp://www.finseth.com/craft/
Although I can't say I used it for my work on various versions of EMACS in the '80s, I just dived into code. But everything I read in it (or its first version, I think his bachelors thesis polished into a technical memo or the like) sounded right.
As for what to do now ... well, buffer implementation tradeoffs are different, maybe ones other than buffer gap should get another look.
Comments
The definitive book on implementing an EMACS, as of a long time ago, is Craig A. Finseth's The Craft of Text Editing -or- Emacs for the Modern World http://www.finseth.com/craft/
Although I can't say I used it for my work on various versions of EMACS in the '80s, I just dived into code. But everything I read in it (or its first version, I think his bachelors thesis polished into a technical memo or the like) sounded right.
As for what to do now ... well, buffer implementation tradeoffs are different, maybe ones other than buffer gap should get another look.
This is also worth looking at http://www.finseth.com/emacs.html and has a literature section.
ADDED: ah, I see tatterdemalion mentioned it elsewhere in this thread.