efc.compareTrees is similar to c.recursiveImport. That is, both are intended to do most of the work of user-specified scripts.
For example, I have just added @button compare vr-controller to leoPluginsRef.leo: p1 = g.findNodeAnywhere(c, 'class ViewRenderedController (QWidget) (vr)') p2 = g.findNodeAnywhere(c, 'class ViewRenderedController (QWidget) (vr2)') assert p1 and p2 tag = 'compare vr1 & vr2' c.editFileCommands.compareTrees(p1, p2, tag) When clicked, this script will compare the trees whose roots are p1 and p2 and show the results like "Recovered nodes". That is, the script creates a node called "compare vr1 & vr2". There is one child node for every node that is changed (or new). Each child node contains a diff of the node. The grand children are one or two clones of the changed or inserted node. This is handy for comparing the vr and vr2 plugins, as you will see if you run this @button script yourself. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
