From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: cua: quiet warning messages Date: Tue, 01 Jul 2003 11:17:22 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: 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> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1057074744 1443 80.91.224.249 (1 Jul 2003 15:52:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2003 15:52:24 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jul 01 17:52:19 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 19XNOp-0000CT-00 for ; Tue, 01 Jul 2003 17:50:31 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19XNVp-00052A-00 for ; Tue, 01 Jul 2003 17:57:45 +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 19XNFH-00022A-TC for emacs-devel@quimby.gnus.org; Tue, 01 Jul 2003 11:40:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19XNDd-0001eS-1M for emacs-devel@gnu.org; Tue, 01 Jul 2003 11:38:57 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19XMt2-0003bf-0w for emacs-devel@gnu.org; Tue, 01 Jul 2003 11:17:42 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19XMsk-0003M9-Il for emacs-devel@gnu.org; Tue, 01 Jul 2003 11:17:22 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.20) id 19XMsk-0003c7-4G; Tue, 01 Jul 2003 11:17:22 -0400 Original-To: "Stefan Monnier" In-reply-to: <200306231700.h5NH0NXr019258@rum.cs.yale.edu> (monnier+gnu/emacs@cs-www.cs.yale.edu) Original-cc: mmaug@yahoo.com Original-cc: teirllm@dms.auburn.edu Original-cc: emacs-devel@gnu.org 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:15334 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15334 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.