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: New minor mode toggling in V24 Date: Fri, 20 Jan 2012 08:55:01 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327067718 28881 80.91.229.12 (20 Jan 2012 13:55:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 13:55:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Frozenlock Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 20 14:55:14 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RoEvy-0001uz-Cv for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 14:55:14 +0100 Original-Received: from localhost ([::1]:52379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoEvx-0000r6-Eh for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 08:55:13 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoEvo-0000nZ-5f for emacs-devel@gnu.org; Fri, 20 Jan 2012 08:55:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoEvn-0001Yb-6M for emacs-devel@gnu.org; Fri, 20 Jan 2012 08:55:04 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:26135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoEvn-0001YS-08 for emacs-devel@gnu.org; Fri, 20 Jan 2012 08:55:03 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAD1xGU9MCos2/2dsb2JhbABDrgCBBoFyAQEEAScvIwULCzQSFBgNJIgPuF6MJgSIPJpwhFY X-IronPort-AV: E=Sophos;i="4.71,542,1320642000"; d="scan'208";a="157767755" Original-Received: from 76-10-139-54.dsl.teksavvy.com (HELO pastel.home) ([76.10.139.54]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Jan 2012 08:55:01 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5376E5946E; Fri, 20 Jan 2012 08:55:01 -0500 (EST) In-Reply-To: (frozenlock@gmail.com's message of "Thu, 19 Jan 2012 19:49:53 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147770 Archived-At: > ARG nil --> toggle > ARG 1 --> on > ARG -1 --> off That's what happened in the past and we changed it, so clearly we're not going back there. Toggling non-interactively is a very rare need. But you can do it with (foo-mode 'toggle) if you don't like (foo-mode (if foo-mode -1 1)). Stefan PS: In case you wonder about the reason for the change, it's for (add-hook 'foo-mode-hook 'bar-mode), eliminating the "need" for those otherwise redundant turn-on-foo-mode.