/[emacs]/emacs/lispref/modes.texi
ViewVC logotype

Diff of /emacs/lispref/modes.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.55 by rms, Mon Jun 30 10:41:29 2003 UTC revision 1.56 by rms, Mon Jul 7 20:49:02 2003 UTC
# Line 864  Define a command whose name is the same Line 864  Define a command whose name is the same
864  Its job is to enable and disable the mode by setting the variable.  Its job is to enable and disable the mode by setting the variable.
865    
866  The command should accept one optional argument.  If the argument is  The command should accept one optional argument.  If the argument is
867  @code{nil}, it should toggle the mode (turn it on if it is off, and off  @code{nil}, it should toggle the mode (turn it on if it is off, and
868  if it is on).  Otherwise, it should turn the mode on if the argument is  off if it is on).  It should turn the mode on if the argument is a
869  a positive integer, a symbol other than @code{nil} or @code{-}, or a  positive integer, the symbol @code{t}, or a list whose @sc{car} is one
870  list whose @sc{car} is such an integer or symbol; it should turn the  of those.  It should turn the mode off if the argument is a negative
871  mode off otherwise.  integer or zero, the symbol @code{-}, or a list whose @sc{car} is one
872    of those.  The meaning of other arguments is not specified.
873    
874  Here is an example taken from the definition of @code{transient-mark-mode}.  Here is an example taken from the definition of @code{transient-mark-mode}.
875  It shows the use of @code{transient-mark-mode} as a variable that enables or  It shows the use of @code{transient-mark-mode} as a variable that enables or

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26