changeset 60230:d3a84cca7e73

(Defining Minor Modes): Explain that INIT-VALUE, LIGHTER, and KEYMAP can be omitted when KEYWORD-ARGS are used.
author Lute Kamstra <lute@gnu.org>
date Thu, 24 Feb 2005 14:20:14 +0000
parents dd4499d17ce0
children d720532c5764
files lispref/modes.texi
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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}