>  (if foo-mode (foo-mode 1))

    This will turn on the minor mode if you happen to browse the
    corresponding
    customize group (because Custom will then load the file).
    I.e. it'd be a bug.

Sorry, I don't understand. If the variable is t, then the mode should be
turned on, no? Does it matter whether it is Customize or the user who loads
the file? The mode will be turned on only if the variable is t - why is that
bad? What am I missing?

And, as I said, I picked this up from the standard Lisp sources, so if it is
unadvisable then some updating might be in order.

If we don't get rid of :init-value (not my call), and the above code is
faulty, then what do you recommend to users writing libraries - just use nil
as the :init-value always?





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

Reply via email to