On Sat, Apr 8, 2017 at 11:29 PM, Edward K. Ream <[email protected]> wrote:
>
> Alas, when switching branches, outline structure in external files seems
> to be controlled by the .leo files, not the sentinels in the external
> file. The --no-cache option has no effect.
>
> As a result, it is difficult to switch between branches in such a way that
> Ctrl+Shift+W, write-at-file-nodes, doesn't change files when the branch
> changes outline structure.
>
I should add that in most cases only headlines are affected, as #385's
present title suggests.
Yesterday's surprise concerned an unusual reorg, done in the js branch:
Old leoAtFile.py:
- putRefLine & allies (empty body)
- putRefLine (actual code)
- helper 1
...
- helper n
New:
- putRefLine & helpers (with code)
- helper 1
...
- helper n
pyflakes complained, correctly, about leoAtFile.py when I did
write-at-file-nodes in *master*, because clones created "unused duplicate"
definitions, in pyflakes terminology.
In short, only unusual reorganizations of outline structure cause real
problems. Leo *always* updates body text properly. If that were not so, Leo
could not be used with git branches.
Edward
--
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.