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: [drew.adams@oracle.com: Info on define-minor-mode - :init-valueor :initial-value?] Date: Fri, 29 Jul 2005 11:59:38 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1122653431 15594 80.91.229.2 (29 Jul 2005 16:10:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2005 16:10:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 29 18:10:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyXPw-0000Hq-Oe for ged-emacs-devel@m.gmane.org; Fri, 29 Jul 2005 18:09:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyXSE-0000is-0w for ged-emacs-devel@m.gmane.org; Fri, 29 Jul 2005 12:11:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DyXPK-00088t-6O for emacs-devel@gnu.org; Fri, 29 Jul 2005 12:08:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DyXOi-000801-Re for emacs-devel@gnu.org; Fri, 29 Jul 2005 12:08:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyXOi-0007w1-O8 for emacs-devel@gnu.org; Fri, 29 Jul 2005 12:07:44 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DyXSr-0007QK-JT for emacs-devel@gnu.org; Fri, 29 Jul 2005 12:12:02 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 0E3642CF545; Fri, 29 Jul 2005 11:59:44 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id BC3EF4AC00A; Fri, 29 Jul 2005 11:59:38 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 85AAFE6C19; Fri, 29 Jul 2005 11:59:38 -0400 (EDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Thu, 28 Jul 2005 10:43:17 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.797, requis 5, AWL -2.00, BAYES_00 -4.90, SUBJ_HAS_SPACES 4.10) X-MailScanner-From: monnier@iro.umontreal.ca 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:41314 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41314 > (if foo-mode (foo-mode 1)) This will turn on the minor mode if you happen to browse the corresponding customize group (because Custom will then load the file). I.e. it'd be a bug. > Otherwise, if we're going to be rigid about this guideline (perhaps there > are good reasons to do that, even in this case), then maybe we should just > get rid of :init-value and have the initial value always be nil - that is, > make users of a library turn on the minor mode explicitly. That would not be > my preference, but it would at least avoid confusion. That might be a good alternative. Stefan