[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc of defining minor modes

From: Stefan Monnier
Subject: Re: doc of defining minor modes
Date: Thu, 18 May 2006 14:59:29 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> If it does not already have a value when the library is loaded, then the
> library can set the (default) value to on or off, as appropriate. If on is
> inappropriate for some particular library for some reason, then its
> :init-value should be nil.

> Please provide a specific scenario of the problem you see - I'm not getting
> this.

Elisp packages may be loaded because the user specifically wants it to be
loaded, but they can also be loaded for all kinds of other
unrelated reasons.  So as a matter of principle the user-visible behavior of
Emacs should be mostly unchanged by (load <foo>).

This often means that minor modes should default to being disabled.

Not always, tho: E.g. foo-aux-mode could default to being enabled without
any harm if it only ever affects buffers in foo-mode and foo-mode can't
exist without foo-aux-mode also existing (e.g. because they're defined in the
same file of because foo.el requires `foo-aux').


reply via email to

[Prev in Thread] Current Thread [Next in Thread]