# HG changeset patch # User Lute Kamstra # Date 1109254814 0 # Node ID d3a84cca7e7338883dba01e6f9c6d53170229777 # Parent dd4499d17ce029bcd46453106a8a54c66bfdad0c (Defining Minor Modes): Explain that INIT-VALUE, LIGHTER, and KEYMAP can be omitted when KEYWORD-ARGS are used. diff -r dd4499d17ce0 -r d3a84cca7e73 lispref/modes.texi --- a/lispref/modes.texi Thu Feb 24 14:06:23 2005 +0000 +++ b/lispref/modes.texi Thu Feb 24 14:20:14 2005 +0000 @@ -1100,7 +1100,7 @@ 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 @@ (@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}