From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: turning on minor modes from hooks Date: Sun, 30 Aug 2009 23:33:19 -0400 Message-ID: References: <200908292125.n7TLPCdp005058@godzilla.ics.uci.edu> <87eiqui4yx.fsf@catnip.gol.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1251689790 25210 80.91.229.12 (31 Aug 2009 03:36:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 03:36:30 +0000 (UTC) Cc: dann@ics.uci.edu, emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 31 05:36:23 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 1Mhxgr-0000FQ-TW for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 05:36:22 +0200 Original-Received: from localhost ([127.0.0.1]:50900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mhxgr-0000tC-BX for ged-emacs-devel@m.gmane.org; Sun, 30 Aug 2009 23:36:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mhxe1-0007lO-Do for emacs-devel@gnu.org; Sun, 30 Aug 2009 23:33:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mhxdw-0007il-RJ for emacs-devel@gnu.org; Sun, 30 Aug 2009 23:33:24 -0400 Original-Received: from [199.232.76.173] (port=49879 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mhxdw-0007iM-Bb for emacs-devel@gnu.org; Sun, 30 Aug 2009 23:33:20 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:52799) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mhxdw-0000pJ-4b for emacs-devel@gnu.org; Sun, 30 Aug 2009 23:33:20 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mhxdv-0006Bi-Ap; Sun, 30 Aug 2009 23:33:19 -0400 In-reply-to: <87eiqui4yx.fsf@catnip.gol.com> (message from Miles Bader on Sun, 30 Aug 2009 08:18:46 +0900) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:114895 Archived-At: Stephen has long advocated that non-interactive invocation of mode commands should always turn on the mode instead of toggling. A call with no arguments, as in (auto-save-mode), naturally ought to toggle the mode or turn it on. But (auto-save-mode nil) has the natural meaning of turning the mode off. Perhaps we could make minor mode functions take &rest arguments so they can distinguish those two cases. However, that could be a painful change,