On Fri, Jan 29, 2010 at 8:30 AM, tfer <[email protected]> wrote:
> 1) Leo apparently stores the selected node and which nodes where left
> open when you last saved,  as I can see it reproduce that when a leo
> file is re-opened, but  it immediately closes things down so that only
> the first level is visible, is this controllable or just a built in
> behavior?

This was caused by a bug fixed a day or two ago.

> 2) For scripts, p is initially set to c.p, the currently selected
> node, if you use p as a general position variable as the examples do,
> c.p is not altered and p no longer has any relation to the current
> position, (e.g. as you iterate through an outline).

What you say is true.

>  I want to find a
> specific node, make it the currently selected node, and then fully
> expand its subtree, (just to illustrate where a certain script is held
> as it is run).  I have not found the methods I need to do this.  You
> can't assign to c.p, there does not seem to be a position method to
> set p to current, and the expand commands all seem to operate on the
> current position.  Can you give me some pointers here?

c.selectPosition(p)
p.expand()
c.redraw()

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