On Monday, September 8, 2014 2:49:29 PM UTC-5, Terry wrote: > Basically we need the body editor to not be a singleton thing, and then free_layout can do all kinds of things, including persistent multiple editors. Sounds like Edward's looking into the possibilities again, so fingers crossed.
I'm not sure you understood my previous comments. There is no conceivable way to have c know more about multiple body editors directly. As far as c is concerned, there is one and only one body editor. The alternative is unthinkable: all of Leo's core (including all commands!) would suddenly have to be aware of multiple editors. This must never happen, and won't happen. So the free_layout code *must* change body editors without c knowing anything about it. But to repeat: maybe this isn't so hard. Modulo the work that free_layout presumably *already* does (or could do) regarding switching panes, the only *additional* work that free_layout would have to do is (carefully!) switch c.frame.body.wrapper, c.frame.body.wrapper.widget and (probably) c.frame.body.widget when switching body editors. Please feel free to ask questions if this isn't perfectly clear to you. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
