[Top][All Lists]

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

Re: file-name-shadow-mode

From: Luc Teirlinck
Subject: Re: file-name-shadow-mode
Date: Thu, 17 Mar 2005 22:55:36 -0600 (CST)

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.



reply via email to

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