On Sun, Feb 15, 2015 at 7:07 PM, Largo84 <[email protected]> wrote:
> I just noticed an @persistence node in my .leo file that contains numerous
> @auto-rst nodes.
>
@persistence nodes were introduced in Leo 5.0. But this feature is only
mentioned in the release notes. This is a documentation fail. It's now on
the list of things to be explained.
When writing an @auto file, Leo stores data (akin to bookmarks) in a
subtree of the @persistence node. When re-reading the file, the data allow
Leo to restore gnx info. You can enable and disable @persistence nodes with:
@bool enable-persistence = True
The default seems reasonable *only* if this feature is properly documented,
which I hope to do later today.
@persistence nodes are a much simpler version of a too-ambitious plan
abandoned about two years ago. The Aha (due to a remark by Terry Brown) is
that we can do a *fairly* good job of linking nodes to gnx's by using
something like bookmarks. Yes, bookmarks can break, but not as often as one
might think.
HTH.
Edward
P.S. leoPersistence.py implements the new feature.
pd.find_position_for_relative_unl links unls saved in the @persistence tree
with just-imported nodes. Here is the docstring::
Given a unl relative to root, return the node whose
unl matches the longest suffix of the given unl.
P.P.S. The final version of this post makes it seem as though I remembered
all of the above. This is far from the truth. I had to search leo-editor
for @persistence. Here are two of the links I found from July of last year:
The initial announcement on leo-editor:
https://groups.google.com/d/msg/leo-editor/QUJvtKrIiG4/oJrgoMUn2KEJ
Some wry exchanges between Kent and me:
https://groups.google.com/d/msg/leo-editor/83Ec5f60zoE/HiXsorogYmAJ
EKR
--
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.