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.

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.

Reply via email to