From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: cua: quiet warning messages Date: Thu, 03 Jul 2003 20:47:58 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200307040047.h640lxbR015385@rum.cs.yale.edu> References: <20030616170421.37652.qmail@web80512.mail.yahoo.com> <200306161847.h5GIlwn08741@eel.dms.auburn.edu> <200306161912.h5GJCwM1020131@rum.cs.yale.edu> <200306231700.h5NH0NXr019258@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057279993 17916 80.91.224.249 (4 Jul 2003 00:53:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2003 00:53:13 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 04 02:53:11 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19YEp5-0004eo-00 for ; Fri, 04 Jul 2003 02:53:11 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19YExE-000157-00 for ; Fri, 04 Jul 2003 03:01:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19YEmV-0007sR-LJ for emacs-devel@quimby.gnus.org; Thu, 03 Jul 2003 20:50:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19YElz-0007gM-1m for emacs-devel@gnu.org; Thu, 03 Jul 2003 20:49:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19YElT-0006iH-84 for emacs-devel@gnu.org; Thu, 03 Jul 2003 20:49:28 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19YEk4-0005iw-Mn; Thu, 03 Jul 2003 20:48:00 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h640lxHl015387; Thu, 3 Jul 2003 20:47:59 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h640lxbR015385; Thu, 3 Jul 2003 20:47:59 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Original-cc: mmaug@yahoo.com Original-cc: teirllm@dms.auburn.edu Original-cc: emacs-devel@gnu.org Original-cc: Stefan Monnier X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15360 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15360 > 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 `-'. I can't remember seeing it, but that sounds right. > 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. Sounds perfect to me, Stefan