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:43:59 -0400 Message-ID: References: <200908292125.n7TLPCdp005058@godzilla.ics.uci.edu> <87eiqui4yx.fsf@catnip.gol.com> <200908311130.50238.danc@merrillprint.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251762344 10800 80.91.229.12 (31 Aug 2009 23:45:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 23:45:44 +0000 (UTC) Cc: Miles Bader , dann@ics.uci.edu, rms@gnu.org, emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 01:45:36 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 1MiGZ5-0004rf-Mq for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 01:45:36 +0200 Original-Received: from localhost ([127.0.0.1]:38499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiGZ4-0003x9-Vg for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 19:45:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiGYz-0003x4-5x for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:45:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiGYu-0003ws-O8 for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:45:28 -0400 Original-Received: from [199.232.76.173] (port=49367 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiGYu-0003wp-IL for emacs-devel@gnu.org; Mon, 31 Aug 2009 19:45:24 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:29279) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiGYs-0001Mp-CP; Mon, 31 Aug 2009 19:45:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEANP9m0pFpYuS/2dsb2JhbACBU9gThBoFh2c X-IronPort-AV: E=Sophos;i="4.44,308,1249272000"; d="scan'208";a="44676566" 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:44:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9A1C97F24; Mon, 31 Aug 2009 19:43:59 -0400 (EDT) In-Reply-To: <200908311130.50238.danc@merrillprint.com> (Daniel Colascione's message of "Mon, 31 Aug 2009 11:30:50 -0400") 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:114926 Archived-At: >> 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? There's no magic involved: if you call (call-interactively 'foo-mode) it will toggle just fine, but you have no reason to presume that this is equivalent to (foo-mode). And indeed it's not. Stefan