From: Richard M. Stallman Date: Mon, 7 Jul 2003 20:49:02 +0000 (+0000) Subject: (Minor Mode Conventions): Specify only some kinds X-Git-Tag: ttn-vms-21-2-B4~9453 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8cd4f01871b769a3c5f3e533c5aa7a1838b1006f;p=emacs.git (Minor Mode Conventions): Specify only some kinds of list values as args to minor modes. --- diff --git a/lispref/modes.texi b/lispref/modes.texi index 3443dfbc6ca..8870c8632bf 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -864,11 +864,12 @@ Define a command whose name is the same as the mode variable. Its job is to enable and disable the mode by setting the variable. The command should accept one optional argument. If the argument is -@code{nil}, it should toggle the mode (turn it on if it is off, and off -if it is on). Otherwise, it should turn the mode on if the argument is -a positive integer, a symbol other than @code{nil} or @code{-}, or a -list whose @sc{car} is such an integer or symbol; it should turn the -mode off otherwise. +@code{nil}, it should toggle the mode (turn it on if it is off, and +off if it is on). It should turn the mode on if the argument is a +positive integer, the symbol @code{t}, or a list whose @sc{car} is one +of those. It should turn the mode off if the argument is a negative +integer or zero, the symbol @code{-}, or a list whose @sc{car} is one +of those. The meaning of other arguments is not specified. Here is an example taken from the definition of @code{transient-mark-mode}. It shows the use of @code{transient-mark-mode} as a variable that enables or