On Tue, Oct 18, 2011 at 7:36 AM, Edward K. Ream <[email protected]> wrote: > On Sun, Oct 16, 2011 at 12:35 PM, SegundoBob <[email protected]> wrote: >> I think there is another problem that is probably unrelated to the Log >> Pane problems. >> >> I think openWithFileName() is not quite correct. The symptom is as >> follows. >> >> When opening an outline executes this @script node: >> >> # 2011-10-14 14:14:05 >> >> g.openWithFileName('/home/bob/.leo/workbook.leo', c) >> g.openWithFileName('/media/sda1/BobH/1/Leo/Snippets.leo', c) >> g.openWithFileName('/media/sda1/BobH/1/Leo/Groceries.leo', c) >> c.frame.bringToFront() > > 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.
Ok. I wasn't doing that, I had the session list in a @session node. @session doesn't mean anything, it's just a description of editor state. When I want to load a session I <ctrl-b> on the node. Presumably that's ok. > > There are plenty of ways to open various files. But not this way. > > 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. > > -- 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.
