I've been trying to create "backup nodes" - copy-not-cloned parents 
containing all the clones of an important @shadow file that has been 
"flattened" in the past when updated externally, with a goal of trying to 
preserve the outline structure, or at least assist me in rebuilding it if 
necessary.

I've also be writing the "backup tree" out to a file on another filesystem, 
but in browsing past threads I see this is not a good idea. The clearest 
discussion on this is from a long time ago:
https://groups.google.com/forum/#!searchin/leo-editor/multiple$20clone$20nodes/leo-editor/wulhmob-Ne4/ywbiBUQpo5oJ

This from Edward:
> I don't recommend saving clones in multiple non-@all external files. 
> In other words, Imo, the most important distinction is between external 
files containing @all and external files that don't.

> My suggested rule is this: when putting clones in external files, make 
sure the clone appears in at most one external file that does not contain 
an @all directive.

> Leo's new read code gives top priority to clones in external files not 
containing @all.  The new read code gives lowest priority to clones in 
external files that do contain @all.

My questions:

Does the above still hold?

If I am sure the backup tree file will never be modified externally is that 
safe from the anticipated problems? It is certain the main target file 
**will** be modified externally, which is why I'm trying to protect its 
tree from being flattened within/by Leo.

I could just use @all in the backup tree, but I've been re-ordering 
children by moving their section labels in the parent and not bothering to 
re-sequence them in the tree, so I'd have to go back and get everything 
back in sync in the "master" first.

I suppose the safest would be just to trust Leo to the point where the 
second tree doesn't get written out to disk at all.

Guidance on this would be most appreciated. . .

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/leo-editor/-/AawtpNE64HQJ.
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