I think I understand the  altering the tree problem
and will be careful about this

cloneMarked():

seems to have the basic code, but

    marked = []
    for p in c.all_positions():
        if p.isMarked() and not p in marked:
            marked.append(p)

   marked.reverse()

    for p in marked:
        p.doDelete()

fails with error on the doDelete step

exception executing script
AttributeError: 'NoneType' object has no attribute 'isDirty'
--------------------
  line 829:
* line 830:         if not p.v.isDirty():
  line 831:             p.v.setDirty()
  line 832:             dirtyVnodeList.append(p.v)


On Oct 4, 1:10 pm, "Edward K. Ream" <[email protected]> wrote:
> On Tue, Oct 4, 2011 at 11:14 AM, mdb <[email protected]> wrote:
> > Is there a command to operate on marked nodes
>
> >  ie    cut-marked
> >        delete-marked
> >        clone-marked
>
> Not to my knowledge.  clone-marked would be a variation of clone-find-all.
>
> All these are tricky because they potentially alter the tree while the
> search is going on.
>
> 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