Stefan Monnier wrote:

   Assuming it's still considered a good idea to make sure that loading a file
   does not have any other side effect,

I personally very much believe it is a bad idea.  _However_ it is the
_general_ default :initialize function (`custom-initialize-reset')
that has this problem and _not_ `custom-initialize-set' (note the
missing `re').  It is `custom-initialize-set' that I propose to use if
:init-value is non-nil.

By the way, quoting from my original message:

   Passing an explicit :initialize keyword to
   `define-minor-mode' does not seem to help: it gets ignored.

Actually, no.  After macroexpansion, :initialize occurs _twice_ in the
defcustom, once as `custom-initialize-default' and once as
`custom-initialize-set', but then Custom apparently ignores the latter.

Sincerely,

Luc.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to