unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Leo <sdl.web@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Is 't' positive?
Date: Thu, 12 Apr 2007 13:45:14 +0100	[thread overview]
Message-ID: <m2k5whoj6t.fsf@sl392.st-edmunds.cam.ac.uk> (raw)
In-Reply-To: yoijk5whokvr.fsf@gamma02.me.chalmers.se

----- 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)

  reply	other threads:[~2007-04-12 12:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1989.1176377828.7795.help-gnu-emacs@gnu.org>
2007-04-12 12:08 ` Is 't' positive? Johan Bockgård
2007-04-12 12:45   ` Leo [this message]
2007-04-12 12:11 ` Pascal Bourguignon
2007-04-12 11:28 Leo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2k5whoj6t.fsf@sl392.st-edmunds.cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).