From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Keywords supported by define-minor-mode Date: Sun, 27 Mar 2016 18:38:38 -0400 Message-ID: References: <83d1qgym36.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1459118359 2400 80.91.229.3 (27 Mar 2016 22:39:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2016 22:39:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 28 00:39:10 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akJKv-0000n3-Dc for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 00:39:09 +0200 Original-Received: from localhost ([::1]:37657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akJKu-0003i9-Mg for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2016 18:39:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akJKh-0003hs-2S for emacs-devel@gnu.org; Sun, 27 Mar 2016 18:38:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akJKd-00005d-PC for emacs-devel@gnu.org; Sun, 27 Mar 2016 18:38:54 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akJKd-00004y-Il for emacs-devel@gnu.org; Sun, 27 Mar 2016 18:38:51 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1akJKb-0000d0-9T for emacs-devel@gnu.org; Mon, 28 Mar 2016 00:38:49 +0200 Original-Received: from 69-196-168-233.dsl.teksavvy.com ([69.196.168.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Mar 2016 00:38:49 +0200 Original-Received: from monnier by 69-196-168-233.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Mar 2016 00:38:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-196-168-233.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:Ds6A6M4Zlz/v6X3pyOi6Eb3ghHE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202310 Archived-At: >>>>> "Eli" == Eli Zaretskii 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