[Top][All Lists]

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

Re: Keywords supported by define-minor-mode

From: Stefan Monnier
Subject: Re: Keywords supported by define-minor-mode
Date: Sun, 27 Mar 2016 18:38:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>>>>> "Eli" == Eli Zaretskii <address@hidden> writes:

> I needed today to understand what exactly this does:
>   (define-minor-mode midnight-mode
>     "Non-nil means run `midnight-hook' at midnight."
>     :global t
>     :initialize #'custom-initialize-default
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> I was astonished to find out that this keyword is not documented
> anywhere, neither in the doc string of define-minor-mode, nor in the
> manual.  The full list of define-minor-mode's keywords that aren't
> documented is this:

>   :extra-args
>   :set
>   :initialize
>   :type

The latter three are covered by this part of the docstring:

    (other keywords are passed to ‘defcustom’ if
    the minor mode is global)

-- Stefan

reply via email to

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