On Aug 23, 5:13 pm, "Edward K. Ream" <[email protected]> wrote:
> You need to copy positions if you save them in a list.  If you don't,
> they will move, eventually becoming 'None'.

Could you please elaborate a bit on this? No need to go very deep,
just the general principle, because I'm missing it.

The funny thing is that I know positions may become invalid if the
outline changes. By "outline changes" I use to understand situations
like "a different node gets focus", "a node gets deleted/added/moved".
This is perfectly in accordance with leo docs - specifically, section
"Ensuring that positions are valid" of "Chapter 7: Scripting Leo with
Python" - I've read that for the first time long time ago, in the pre-
sphinx era, when I was still using leo with the tk GUI. But I see
"outline changes" and "saving positions into a list" as very different
things, that's why I didn't even bother to try the copy trick in the
first place, but whined here :) Do you see any mistakes or missing
pieces in my logic?

-- 
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