From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: [drew.adams@oracle.com: Info on define-minor-mode - :init-valueor :initial-value?] Date: Sun, 31 Jul 2005 20:45:46 -0400 Message-ID: References: <200507290256.j6T2uPh18315@raven.dms.auburn.edu> <200507310102.j6V120625623@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1122858204 26483 80.91.229.2 (1 Aug 2005 01:03:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2005 01:03:24 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 01 03:03:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DzOi3-0002w8-OV for ged-emacs-devel@m.gmane.org; Mon, 01 Aug 2005 03:03:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzOkg-0007qA-GC for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2005 21:05:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DzOgU-0005do-Mi for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:01:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzOgJ-0005Xe-3h for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:01:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzOgI-0005Qn-VX for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:01:27 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DzOeD-0005Fs-RY for emacs-devel@gnu.org; Sun, 31 Jul 2005 20:59:17 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DzOR8-0003vi-K7; Sun, 31 Jul 2005 20:45:46 -0400 Original-To: Luc Teirlinck In-reply-to: <200507310102.j6V120625623@raven.dms.auburn.edu> (message from Luc Teirlinck on Sat, 30 Jul 2005 20:02:00 -0500 (CDT)) 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:41386 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41386 For cases which are more complex, you'd use custom-initialize-default and then write (if foo-mode (foo-mode 1)) at the end of the file. If we are willing to change define-minor-mode, then I do not believe that there is any need for the more complex method, unless there is some reason why the define-minor-mode can not be delayed until all functions called by the minor mode have been defined. Sometimes it is inconvenient to order things that way. So let's document this as an optional method.