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: Remove toggling behavior of minor modes when called from elisp Date: Mon, 07 Jan 2008 06:31:34 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1199705831 6780 80.91.229.12 (7 Jan 2008 11:37:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 11:37:11 +0000 (UTC) Cc: Reiner.Steib@gmx.de, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 07 12:37:33 2008 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 1JBqIO-0005Ye-4J for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 12:37:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBqI1-0003Ht-6J for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 06:37:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBqCo-0005Lu-4B for emacs-devel@gnu.org; Mon, 07 Jan 2008 06:31:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBqCl-0005JL-Cd for emacs-devel@gnu.org; Mon, 07 Jan 2008 06:31:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBqCl-0005JC-7L for emacs-devel@gnu.org; Mon, 07 Jan 2008 06:31:43 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBqCl-0002eb-AJ for emacs-devel@gnu.org; Mon, 07 Jan 2008 06:31:43 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1JBqCc-0005MF-7H; Mon, 07 Jan 2008 06:31:34 -0500 In-reply-to: (message from Stefan Monnier on Sun, 06 Jan 2008 15:22:41 -0500) X-detected-kernel: by monty-python.gnu.org: 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:86462 Archived-At: Of course. I think it's the main part of the TODO item. For most minor modes, the right thing to do is to make it use define-minor-mode. For any minor modes, it is very desirable for the variable's value to control the entire functionality. For the old minor modes, that was always the case. define-minor-mode offers the option to provide forms to be executed when you turn the mode on or off. If that feature is used, the minor mode can no longer be controlled by binding the variable. Converting an existing minor mode to use define-minor-mode offers the opportunity to take this step backward. We need to remember to avoid that.