[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cua: quiet warning messages
From: |
Richard Stallman |
Subject: |
Re: cua: quiet warning messages |
Date: |
Tue, 01 Jul 2003 11:17:22 -0400 |
As far as I know, minor modes are only ever called with the
following arguments:
- integers
- nil
- t
- a one-element list containing an integer
- toggle
I think there are others, such as the symbol `-'.
This last one is new and only happens when the minor mode is
called interactively.
One problem with specifying this behavior for `toggle' is that many
minor modes don't currently implement it. They would need to be
changed.
It could even not specify the behavior in the `toggle' case since
it's only used internally between the interactive spec and
the minor mode's body.
That makes it feasible.
How about text for modes.texi?
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). 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.
- Re: cua: quiet warning messages,
Richard Stallman <=