On Jul 13, 12:29 pm, "Ville M. Vainio" <[email protected]> wrote:

> I sort of implemented this already, but it's trickier than you'd think
> because positions are not "persistent".

Yes.  There is even a problem with moving a single node: the various
p.moveX methods must call p._adjustPositionBeforeUnlink to account for
the situation that moving p will change its destination position(!)

As it happens, I am working on p._adjustPositionBeforeUnlink for the
one-nodes branch.  The code looks strange, and may be buggy.  I hope
to improve it and add some meaningful unit tests.

The clone-find-all command side-steps this problem by putting moving
cloned nodes to be children of a single destination node.  This node
appears at the start of the outline, so its position never changes.
The gather-marked-nodes command could use similar code.

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