From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kees Bakker Newsgroups: gmane.emacs.devel Subject: Re: bug#3688: Also need (auto-fill-mode nil) to trigger this bug Date: Mon, 29 Jun 2009 11:18:10 +0200 Message-ID: <200906291118.10568.kees.bakker@altium.nl> References: <200906261356.48352.kees.bakker@altium.nl> <200906291001.56093.kees.bakker@altium.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ansi_x3.4-1968" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246289961 25959 80.91.229.12 (29 Jun 2009 15:39:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2009 15:39:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 29 17:39:14 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLIwo-0008Rr-BX for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2009 17:39:11 +0200 Original-Received: from localhost ([127.0.0.1]:55439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLIwn-0000S3-QL for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2009 11:39:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLD0F-0001Jd-QP for emacs-devel@gnu.org; Mon, 29 Jun 2009 05:18:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLD0A-0001I4-H3 for emacs-devel@gnu.org; Mon, 29 Jun 2009 05:18:18 -0400 Original-Received: from [199.232.76.173] (port=42190 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLD0A-0001Hz-C8 for emacs-devel@gnu.org; Mon, 29 Jun 2009 05:18:14 -0400 Original-Received: from ns2.tasking.nl ([195.193.207.10]:35111) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLD09-00014D-Sr for emacs-devel@gnu.org; Mon, 29 Jun 2009 05:18:14 -0400 Original-Received: from leonino.tasking.nl (nl-fg300a-1-dmz.tasking.nl [172.16.1.8]) by ns2.tasking.nl (8.14.3/8.14.3) with ESMTP id n5T9IBh0028225; Mon, 29 Jun 2009 11:18:11 +0200 (MEST) Original-Received: from koli.tasking.nl (koli.tasking.nl [172.17.1.96]) by leonino.tasking.nl (8.14.3/8.14.3) with ESMTP id n5T9IBdk022307; Mon, 29 Jun 2009 11:18:11 +0200 (MEST) Original-Received: by koli.tasking.nl (Postfix, from userid 269) id 440994032E; Mon, 29 Jun 2009 11:18:11 +0200 (CEST) User-Agent: KMail/1.9.9 In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: OpenBSD 3.0-3.9 X-Mailman-Approved-At: Mon, 29 Jun 2009 11:33:16 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111811 Archived-At: On Monday 29 June 2009, Stefan Monnier wrote: > > BTW. I never intended to enable auto-fill. But strangly enough the following > > will _toggle_ auto-fill-mode. (I know, this function is "Toggle Auto Fill mode". > > Besides a clear description to turn it on, it should also have a clear > > description to turn it off.) > > > (auto-fill-mode nil) > > All minor modes are turned on with a positive arg and turned off with > a negative arg. A nil argument may toggle it, but that might change in > the future. A `toggle' argument toggles most (but not all) minor modes. OK. I didn't know that (and I'm using emacs for almost two decades now). Still I want to express my dislike about the way a "nil" arg is handled. First, is 0 a positive arg? Some people might think so (I do). It is a bit confusing. (auto-fill-mode 0) will turn the mode off, so in that sense a zero is not a positive arg. To summarize (auto-fill-mode) ;;; toggles (auto-fill-mode 0) ;;; turn off (auto-fill-mode nil) ;;; toggles (auto-fill-mode -1) ;;; turn off (auto-fill-mode 1) ;;; turn on (auto-fill-mode t) ;;; turn on Toggling for a "nil" argument does not make sense to me. -- Kees