On May 14, 2:57 pm, Terry Brown <[email protected]> wrote:
> On Tue, 14 May 2013 12:43:59 -0700 (PDT)
>
>  - the ' ' append trick shouldn't be needed, your script should
>    set the node and outline dirty explicitly with the relevant methods,
>    p.v.setDirty(), c.setChanged(True), etc. not sure exactly.
>
> I'm guessing you hadn't seen the p.v.setDirty(), c.setChanged(True)
> etc. methods?

As noted in [1], I tried p.setDirty() and that alone did not help.

No, I had not found c.setChanged(True).

The following two schemes set the file changed flag:

p.h = "Changed"
p.v.setDirty()
c.setChanged(True)

or

p.h = "Changed"
p.setDirty()
c.setChanged(True)

That is, so far as I can tell, p.setDirty() and p.v.setDirty() are
equivalent.

Thanks.

I have no objections to being required to call setDirty() and
setChanged().

[1] https://bugs.launchpad.net/leo-editor/+bug/1174915

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to