From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: turning on minor modes from hooks Date: Mon, 31 Aug 2009 11:30:50 -0400 Organization: Merrill Print Message-ID: <200908311130.50238.danc@merrillprint.com> References: <200908292125.n7TLPCdp005058@godzilla.ics.uci.edu> <87eiqui4yx.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251734904 21821 80.91.229.12 (31 Aug 2009 16:08:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 16:08:24 +0000 (UTC) Cc: dann@ics.uci.edu, Miles Bader To: emacs-devel@gnu.org, rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 31 18:08:11 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 1Mi9QP-0007r5-8g for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 18:08:09 +0200 Original-Received: from localhost ([127.0.0.1]:33658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi9QO-0002eD-8X for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 12:08:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mi8qX-0007Gs-9o for emacs-devel@gnu.org; Mon, 31 Aug 2009 11:31:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mi8qS-0007BG-2m for emacs-devel@gnu.org; Mon, 31 Aug 2009 11:31:04 -0400 Original-Received: from [199.232.76.173] (port=56287 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi8qR-0007Av-PM for emacs-devel@gnu.org; Mon, 31 Aug 2009 11:30:59 -0400 Original-Received: from vpn.merrillpress.com ([64.61.107.78]:32995) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mi8qN-0000jm-MJ; Mon, 31 Aug 2009 11:30:55 -0400 Original-Received: from [10.136.5.5] (helo=pluto.localnet) by mars.merrillpress.net with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Mi8qI-0003BO-Qi; Mon, 31 Aug 2009 11:30:50 -0400 User-Agent: KMail/1.12.0 (Linux/2.6.29.6-217.2.16.fc11.i586; KDE/4.3.0; i686; ; ) In-Reply-To: X-Face: 9VC; >}hM+`K4j{H4n=pq/!61'7Rt"vEaPUdCwpS'=; @B7Ll,~Q.xb(|A>; 8M[\UzKQi{>Q Iptc6NY\M(0<{W?ob}e/91Y!k|XE:2SA2LU"cni>#Dmw4siEWG7|L9zkOZ\[nQPe9[PG|s P2n_jW\TzsG2N1Z0q:E#NmWU~0i]JE)gqB|4{jCjolaX6)KO[@k\:>01.58.Pk5Nb\5s": R,Q78_s; 6+vLj\V1y(`]\G3("(Y!G^79x}q[4L8w[.qEs|+ZN0R`Hk,>y; d7!SFx%M2M39 y[/Kc!p!:.E3Zx')v*l6IlR X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:114904 Archived-At: On Sunday 30 August 2009, Richard Stallman wrote: > Stephen has long advocated that non-interactive invocation of mode > commands should always turn on the mode instead of toggling. Isn't magically changing behavior between the interactive and non-interactive cases a Bad Thing? > 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, What about some kind of enable-minor-mode function?