]> git.eshelyaron.com Git - emacs.git/commitdiff
(Defining Minor Modes): Explain that INIT-VALUE, LIGHTER, and KEYMAP
authorLute Kamstra <lute@gnu.org>
Thu, 24 Feb 2005 14:20:14 +0000 (14:20 +0000)
committerLute Kamstra <lute@gnu.org>
Thu, 24 Feb 2005 14:20:14 +0000 (14:20 +0000)
can be omitted when KEYWORD-ARGS are used.

lispref/modes.texi

index 62f152e1d41240d359fcf8a9b7797c705d8a47e8..530044ac0378bc6f0c5800a744c1309ce65cb44d 100644 (file)
@@ -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}