From: Lute Kamstra Date: Thu, 24 Feb 2005 14:20:14 +0000 (+0000) Subject: (Defining Minor Modes): Explain that INIT-VALUE, LIGHTER, and KEYMAP X-Git-Tag: ttn-vms-21-2-B4~2138 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f24be0a7621a5c29bd809ca8ad6c7e40097a2376;p=emacs.git (Defining Minor Modes): Explain that INIT-VALUE, LIGHTER, and KEYMAP can be omitted when KEYWORD-ARGS are used. --- diff --git a/lispref/modes.texi b/lispref/modes.texi index 62f152e1d41..530044ac037 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -1100,7 +1100,7 @@ characters are reserved for major modes.) The macro @code{define-minor-mode} offers a convenient way of implementing a mode in one self-contained definition. -@defmac define-minor-mode mode doc [init-value [lighter [keymap keyword-args... body...]]] +@defmac define-minor-mode mode doc [init-value [lighter [keymap]]] keyword-args... body... @tindex define-minor-mode This macro defines a new minor mode whose name is @var{mode} (a symbol). It defines a command named @var{mode} to toggle the minor @@ -1121,8 +1121,10 @@ specifying bindings in this form: (@var{key-sequence} . @var{definition}) @end example -The @var{keyword-args} consist of keywords followed by corresponding -values. A few keywords have special meanings: +The above three arguments @var{init-value}, @var{lighter}, and +@var{keymap} can be (partially) omitted when @var{keyword-args} are +used. The @var{keyword-args} consist of keywords followed by +corresponding values. A few keywords have special meanings: @table @code @item :global @var{global}