From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#3566: 23.0.94; explain why not to use group defined by define-minor-mode Date: Tue, 12 Jul 2011 16:07:41 +0200 Message-ID: References: <4276C1AF57E24DE89998752CA7F77EE1@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310484255 12363 80.91.229.12 (12 Jul 2011 15:24:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 15:24:15 +0000 (UTC) Cc: 3566@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 17:24:11 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Qgeol-0004W7-4H for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 17:24:11 +0200 Original-Received: from localhost ([::1]:44616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgeok-0001ri-16 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 11:24:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgdlp-0001fP-TH for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 10:17:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qgdln-0003T8-Gh for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 10:17:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgdln-0003T3-0R for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 10:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qgdll-00083b-PA; Tue, 12 Jul 2011 10:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2011 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3566 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 3566-submit@debbugs.gnu.org id=B3566.131048019830928 (code B ref 3566); Tue, 12 Jul 2011 14:17:01 +0000 Original-Received: (at 3566) by debbugs.gnu.org; 12 Jul 2011 14:16:38 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgdlM-00082k-Pr for submit@debbugs.gnu.org; Tue, 12 Jul 2011 10:16:37 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgdlK-00082K-H6 for 3566@debbugs.gnu.org; Tue, 12 Jul 2011 10:16:35 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qgdkz-0002ag-1h; Tue, 12 Jul 2011 16:16:13 +0200 In-Reply-To: <4276C1AF57E24DE89998752CA7F77EE1@us.oracle.com> (Drew Adams's message of "Sun, 14 Jun 2009 13:23:10 -0700") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Japan's _Oil On Canvas (2)_: "Still Life in Mobile Homes" X-Hashcash: 1:23:110712:emacs-pretest-bug@gnu.org::dfFDn+/sVUIVoJBX:0000000000000000000000000000000000006PdS X-Hashcash: 1:23:110712:drew.adams@oracle.com::LKzYzPIIlBX2j5Je:00000000000000000000000000000000000000008AQL X-Hashcash: 1:23:110712:3566@debbugs.gnu.org::7vfcLmxO5D4VI8Vj:00000000000000000000000000000000000000000FCx8 X-MailScanner-ID: 1Qgdkz-0002ag-1h MailScanner-NULL-Check: 1311084973.19696@Rg2uGUK+QSW1gY8ZZN5osQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 12 Jul 2011 10:17:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48736 Archived-At: "Drew Adams" writes: > In the Elisp manual and in the doc string for define-minor-mode, we > are told not to use the custom group that is automatically defined for > the mode variable, unless we have explicitly used defgroup to define > the group. > > Why? Please provide some explanation. > > If you use `define-globalized-minor-mode', then the generated group > (with the name of the _local_ minor mode) is recognized by > `customize-group', and the mode variable for the global mode is > recognized by `customize-variable'. > > Why is it inadvisable to use the same generated group for other > defcustoms without explicitly defining the group? What negative > consequences arise if that is attempted? Please explain in the doc. > > The Elisp manual, node Defining Minor Modes, seems to refer you to > node `Group Definitions' for the explanation of this warning, but > there is no such explanation there: > > "*Warning:* don't use this default group name unless you have > written a `defgroup' to define that group properly. *Not > Group Definitions." Yes, this seems rather puzzling. Anybody know the reason? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/