[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] EmacsDocument vs. ScelDocument vs. EmacsBuffer



I am making a diagram in inkscape of the interactions between the sclang and emacs parts of scel, and I am wondering about the relationship between EmacsDocument and ScelDocument. Is EmacsDocument just there for legacy purposes? EmacsBuffer clearly exists specifically for usage by the emacs class browser.

These three classes seem to have a significant amount of redundancy between them (they all have their own method of providing SC with an interface to an SC buffer). It was recommended that I work on ScelDocument, and I am thinking that the other two would benefit from having their code integrated with ScelDocument and becoming subclasses.

In the bigger picture I am thinking of trying to implement as many of the functions mentioned in the help file for Document as I am able.

I have included my partial diagram (should be viewable in firefox or opera, but inkscape displays it better, and allows you to zoom in more (it is vector graphics, so it will zoom indefinitely without pixelating, and the text is a very wide range of sizes).

image/svg