On Wed, 30 Jul 2014 09:38:19 -0500
"Edward K. Ream" <[email protected]> wrote:

> On Wed, Jul 30, 2014 at 9:14 AM, 'Terry Brown' via leo-editor
> <[email protected]> wrote:
> 
> > It seems to me that calling the importer and writer on empty files
> > should have so little cost in cases where it's unnecessary that it's
> > worth doing it just to enable all the "who would have thought of
> > that" applications these super cheap load/save hooks provide.
> 
> Ok.  ic.createOutline does now call importers for empty files.
> 
> Unless I am mistaken, writers are always called.

Only if the file's tree is dirty.  Probably best it stay that
way I guess, calling it regardless would be inconsistent.  You could
add a do nothing .write_always() which is called when the tree's not
dirty so the user can call their .write() from that if they want to do
something regardless of dirtiness.

> I'm working on optional loading from ~/.leo right now.  It will be
> ready sometime today.

Great.

Can you confirm that @auto-explicit always trumps extension?  I would
have assumed that, but tests indicate otherwise.  I.e. 
@auto-ctext ~/r/foo.txt doesn't work, @auto-ctext ~/r/foo.txxt does,
the ctext importer isn't run on the .txt version.

Cheers -Terry

 
> 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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to