Re: question on ymacs -- ymacs frames

17 views
Skip to first unread message

Mihai Călin Bazon

unread,
Dec 28, 2009, 5:09:35 PM12/28/09
to Joseph McDonald, ym...@googlegroups.com
BTW, please post any further questions to the Ymacs group: http://groups.google.com/group/ymacs so that other people who might be interested can benefit from the discussion.

Cheers,
-Mihai

2009/12/29 Mihai Călin Bazon <mihai...@gmail.com>
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



--
Mihai Bazon,
http://mihai.bazon.net/blog
Reply all
Reply to author
Forward
0 new messages