> 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 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.
It's hard to comment on complex proposals such as yours. I am not
likely ever to implement any such proposal, and certainly not this
calendar year.
The worst mistake I ever made with Leo was the notion of "backup" .leo
files. It lead to impossible-to-predict data loss at arbitrarily long
limes after the backup files were created. I am not likely to do
anything similar ever again.
I just came across a situation in which an @shadow tree got flattened.
It happened because a unit test mistakenly deleted a private shadow
file.
Keeping this in mind, here are two different backup plans that you can
do immediately, without changing Leo in any way:
1. Just copy the @shadow tree, and paste it elsewhere (perhaps in
another .leo file), changing @shadow to @@shadow in the pasted
location. This stores all info in the .leo file.
2. Make copies of the private files in the .leo_shadow directories. I
have just verified that Leo's import-file command will indeed recover
the information in .leo_shadow directories.
Either way should safely preserve all the essential information.
HTH.
Edward
It's hard to comment on complex proposals such as yours. I am not
likely ever to implement any such proposal, and certainly not this
calendar year.
> I'm sorry if I implied I was asking for anything but information and advice,
> much less for any changes in Leo's functionality; I'm honestly just trying
> to figure out how to reconcile what I'm trying to do with my understanding
> of the various facilities Leo offers.
Oh. I misunderstood.
> To generalize my scenario further, only using @shadow or @nosent, all data
> is in either "A" or "B" trees.
>
> The "master" tree "A"
> - is the only one containing @shadow files
> - there are no clones shared between them
> - only those files will be edited externally
>
> All other locations "B"
> - contain only @nosent files
> - all changes to their content take place within Leo
This looks safe to me, now that you mention it :-) Please let us know
how it works for you.
Edward
This looks safe to me, now that you mention it :-) Please let us know
how it works for you.
>> 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.
If this proves to be a solid solution (after more systematic testing) to the oft-expressed desire for "multi-file" clones, I recommend that this be reflected in the @ <file> docs. Note of course it still does not enable "multi-source" clones. Perhaps call this "single-source multi-target" cloning?
Consider this to a somewhat delayed response to this post, and let me know if it rings any bells:
http://groups.google.com/group/leo-editor/msg/c54658a6ea61d52f
I believe nothing actually got modified in @sent's logic as a result of the thinking behind this post?
The docs somewhat deprecate @nosent, but it seems my use case may restore them to full-fledged citizens. Note that this only works **because** Leo can't read from them.
--------------------
At the risk of being a pest, I'd still like to request - no rush, and only if it's easy - a response to this question:
>> 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.
>Does the above still hold?