From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: turning on minor modes from hooks Date: Mon, 31 Aug 2009 19:32:29 -0400 Message-ID: References: <200908292125.n7TLPCdp005058@godzilla.ics.uci.edu> <87eiqui4yx.fsf@catnip.gol.com> <87r5ur7hpi.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251761574 9047 80.91.229.12 (31 Aug 2009 23:32:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 23:32:54 +0000 (UTC) Cc: dann@ics.uci.edu, rms@gnu.org, emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 01:32:46 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 1MiGMf-0001cs-4N for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 01:32:45 +0200 Original-Received: from localhost ([127.0.0.1]:53723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiGMe-00034b-Ce for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 19:32:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiGMZ-00034W-Q1 for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:32:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiGMU-00033Z-LS for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:32:38 -0400 Original-Received: from [199.232.76.173] (port=50099 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiGMU-00033W-IB for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:32:34 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:31615 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiGMR-0007x4-Vk; Mon, 31 Aug 2009 19:32:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAFn6m0pFpYuS/2dsb2JhbACBU9gZhBoFh2c X-IronPort-AV: E=Sophos;i="4.44,308,1249272000"; d="scan'208";a="44675310" Original-Received: from 69-165-139-146.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.146]) by ironport2-out.teksavvy.com with ESMTP; 31 Aug 2009 19:31:23 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1EA0B7F24; Mon, 31 Aug 2009 19:32:29 -0400 (EDT) In-Reply-To: <87r5ur7hpi.fsf@catnip.gol.com> (Miles Bader's message of "Tue, 01 Sep 2009 07:15:53 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:114925 Archived-At: >>> A call with no arguments, as in (auto-save-mode), naturally ought to >>> toggle the mode or turn it on. >> Care to explain why? > Note that he said "or turn it on"; I think the point was to distinguish > those possibilities from "unconditionally turn it off". Toggling is just wrong for it. I understand why it's like this right now, but from an Lisp point of view, it's just not the right choice, and there's no need here to distinguish a nil arg from the absence of an arg. Stefan