On Tue, Oct 18, 2011 at 7:36 AM, Edward K. Ream <[email protected]> wrote:

> g.openWithFileName is the heart of Leo's code that opens files and
> switches from one commander to another.
>
> Executing g.openWithFileName from an @script node, that is, while
> *another* .leo file is in the process of being loaded, is an abuse of
> an internal method.  Don't do it.

In light of my new-found realization that the desire to save the
present "session" (open .leo files) makes sense, I am more open to
improving g.openWithFileName with an eye to making it "reentrant",
that is, callable from within itself.

Various people have suggested code snippets.  I would welcome one or
more more-or-less-standard ways of saving and restoring sessions.
Perhaps save/restore session commands.  Or something like that.

Anyone have code that they would like to propose?

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