[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is 't' positive?
From: |
Johan Bockgård |
Subject: |
Re: Is 't' positive? |
Date: |
Thu, 12 Apr 2007 14:08:40 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
Leo <sdl.web@gmail.com> writes:
> However, it seems legal to use 't' and they will behave like it is
> positive. So the question, is 't' positive? Is it safe to use 't' in
> this kind of functions?
(info "(elisp)Minor Mode Conventions")
[...]
The command should accept one optional argument. If the argument
is `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 `t', or a list whose CAR is one of
those. It should turn the mode off if the argument is a negative
integer or zero, the symbol `-', or a list whose CAR is a
negative integer or zero. The meaning of other arguments is not
specified.
--
Johan Bockgård