On Tue, 5 May 2015 06:20:12 -0500
"Edward K. Ream" <edream...@gmail.com> wrote:

> On Tue, May 5, 2015 at 4:32 AM, Kent Tenney <kten...@gmail.com> wrote:
> 
> > -1 as I understand it, but maybe I don't understand.
> >
> > Other settings are active if applied in myLeoSettings.leo, you're
> > saying plugins would need to be mentioned in every .leo file which
> > uses them?
> 
> ​No.  If x.leo contains no @enabled-plugins node, the
> @enabled-plugins node in myLeoSettings.leo is used.
> 
> But if x.leo *does* contain an @enabled-plugins node, then only those
> plugins in that particular @enabled-plugins node become active for
> x.leo, regardless of how many plugins may have been loaded in other
> commanders.
> 
> This would make @enabled-plugins work more like all other settings
> nodes, including @data nodes.

Seems to me replacing the whole plugins list loses the current
capability of saying "in this outline I want my regular list of plugins
plus this one" - after the change you'd have to copy your regular list
of plugins, which would then not change when the list in myLeoSettings
changes.

Would it work to add a @bool clear_enabled_plugins which
indicates that the list of enabled plugins should be cleared before
applying the current outline's list.  That would normally be False, but
when True would only apply to the outline that set it True in its
@settings - the existing @settings scoping rules, which already apply
to @bool settings, would work in our favor here?

Cheers -Terry

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
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