all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: emacs-devel@gnu.org
Subject: Keywords supported by define-minor-mode
Date: Sun, 27 Mar 2016 18:30:53 +0300	[thread overview]
Message-ID: <83d1qgym36.fsf@gnu.org> (raw)

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

Could someone please document these, or at least describe them here in
their own words (so that someone else could update the documentation
accordingly)?  We shouldn't leave such important functionality
undocumented for so long.

TIA



             reply	other threads:[~2016-03-27 15:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-27 15:30 Eli Zaretskii [this message]
2016-03-27 22:38 ` Keywords supported by define-minor-mode Stefan Monnier
2016-03-28 15:23   ` Eli Zaretskii
2016-03-28 15:50     ` Stefan Monnier
2016-03-28 16:05       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83d1qgym36.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.