emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: Info on define-minor-mode - :init-valueor :initial-v


From: Stefan Monnier
Subject: Re: address@hidden: Info on define-minor-mode - :init-valueor :initial-value?]
Date: Fri, 29 Jul 2005 11:59:38 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>  (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.

> Otherwise, if we're going to be rigid about this guideline (perhaps there
> are good reasons to do that, even in this case), then maybe we should just
> get rid of :init-value and have the initial value always be nil - that is,
> make users of a library turn on the minor mode explicitly.  That would not be
> my preference, but it would at least avoid confusion.

That might be a good alternative.


        Stefan




reply via email to

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