On Fri, Oct 14, 2011 at 4:06 PM, Terry Brown <[email protected]> wrote:

> I think it's a major thing to fix though.  Basically Leo has no concept
> of the "current" commander.

There are at least two separate issues here.

1. g.app.setLog and c.setLog.

As usual when switching between contexts, getting the switch just
exactly correct is dicey.  The log problems you mention may be tricky
to get right, but they have no fundamental significance.

2. The "current" commander and related issues.

g.app.windowList is a list of open frames.  For any frame f, f.c is
its commander.  You can always find exactly what commander you want by
finding it in g.app.windowList.

Conversely, you can specify any commander by giving the full path to
its file, or simply by giving id(c).  This is, I think, all that is
needed to save any per-commander info you like.

In particular, extending quicksearch to show global matches can save
id(c) for each match.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to