[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is 't' positive?
From: |
Leo |
Subject: |
Re: Is 't' positive? |
Date: |
Thu, 12 Apr 2007 13:45:14 +0100 |
User-agent: |
No Gnus v0.6, Emacs/23.0.0.10 (2007-04-11), Fedora 6 gnu/linux |
----- Johan Bockgård (2007-04-12) wrote:-----
> 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.
Thanks.
--
Leo <sdl.web AT gmail.com> (GPG Key: 9283AA3F)