Yes; at any moment you can have multiple frames that display the same buffer. For example, C-x 2 or C-x 3 will split the focused frame (horizontally or vertically). (and C-x 1 will remove all splits).
When you edit the buffer, then, the changes must be immediately visible in all frames. That's the reason for the separation. Ymacs_Frame is a widget and deals with drawing the text and cursor, while Ymacs_Buffer only represents the text in memory and provides means to modify it.
If you're thinking MVC then the frame is a view, the buffer is a model, and keymaps are controllers.
Cheers,
-Mihai--
On Mon, Dec 28, 2009 at 10:29 PM, Joseph McDonald <supe...@gmail.com> wrote:Hi Mihai,
I'm going through ymacs trying to learn how it works just for fun...
I see that there are ymacs frames and ymacs buffers. What is the
purpose of ymacs frames? are there more than 1 of them? I'm trying
to understand why frames and buffers and why not just buffers.
thanks,
-joe
Mihai Bazon,
http://mihai.bazon.net/blog