From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#3811: marked as done (23.0.96; custom-group-members) Date: Wed, 15 Jul 2009 18:45:05 +0000 Message-ID: References: <5CA3346CC20B4ED3957C67730027CF19@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1247683505-10680-0" X-Trace: ger.gmane.org 1247684302 20215 80.91.229.12 (15 Jul 2009 18:58:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2009 18:58:22 +0000 (UTC) To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 15 20:58:14 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MR9gB-0004xz-Q3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jul 2009 20:58:13 +0200 Original-Received: from localhost ([127.0.0.1]:44930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR9gB-0005Xz-8j for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jul 2009 14:58:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MR9fg-0005IP-S0 for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2009 14:57:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MR9fa-0005Ar-6P for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2009 14:57:39 -0400 Original-Received: from [199.232.76.173] (port=51626 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR9fY-0005AK-V3 for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2009 14:57:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48036) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MR9fX-0004Zp-NU for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2009 14:57:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6FIvS6T013035; Wed, 15 Jul 2009 11:57:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6FIj5hZ010707; Wed, 15 Jul 2009 11:45:05 -0700 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 3811 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29448 Archived-At: This is a multi-part message in MIME format... ------------=_1247683505-10680-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Wed, 15 Jul 2009 14:39:05 -0400 with message-id and subject line Re: bug#3811: 23.0.96; custom-group-members has caused the Emacs bug report #3811, regarding 23.0.96; custom-group-members to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 3811: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D3811 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1247683505-10680-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 10 Jul 2009 17:53:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6AHrNv9027818 for ; Fri, 10 Jul 2009 10:53:25 -0700 Received: from mail.gnu.org ([199.232.76.166]:52068 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MPKHi-0002Zj-Sm for emacs-pretest-bug@gnu.org; Fri, 10 Jul 2009 13:53:22 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MPKHg-0002fA-1a for emacs-pretest-bug@gnu.org; Fri, 10 Jul 2009 13:53:22 -0400 Received: from rcsinet11.oracle.com ([148.87.113.123]:63430 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MPKHf-0002eg-Jv for emacs-pretest-bug@gnu.org; Fri, 10 Jul 2009 13:53:19 -0400 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6AHsjWY001813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 10 Jul 2009 17:54:47 GMT Received: from abhmt010.oracle.com (abhmt010.oracle.com [141.146.116.19]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6AHrNlR010659 for ; Fri, 10 Jul 2009 17:53:23 GMT Received: from dradamslap1 (/24.5.190.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Jul 2009 10:53:14 -0700 From: "Drew Adams" To: Subject: 23.0.96; custom-group-members Date: Fri, 10 Jul 2009 10:53:13 -0700 Message-ID: <5CA3346CC20B4ED3957C67730027CF19@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcoBh0vjUojyqH+oTb6lhnXxuF940Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt010.oracle.com [141.146.116.19] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010208.4A57800B.008F:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) emacs -Q Dunno if this is just a doc bug or a code bug. `custom-group-members' seems to give the same result - a list of groups, whether its second arg GROUPS-ONLY is nil or t. I don't see any difference. Even if there are some cases where there would be a difference, the doc string is unclear, because it doesn't say what the alternative is. What should you expect if GROUPS-ONLY is nil, other than groups? What else might be included in the list? FWIW, I was looking for a function that, given a group, would return a list of all options and faces in that group (directly, not by inheritance). From the function name and doc string, I thought perhaps `custom-group-members' would do the job (with a nil arg). Apparently not. But I don't know what it is _supposed_ to do when GROUPS-ONLY is nil. In GNU Emacs 23.0.96.1 (i386-mingw-nt5.1.2600) of 2009-07-09 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' ------------=_1247683505-10680-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3811-close) by emacsbugs.donarmstrong.com; 15 Jul 2009 18:39:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6FId7k2009789 for <3811-close@emacsbugs.donarmstrong.com>; Wed, 15 Jul 2009 11:39:09 -0700 Received: from toip6.srvr.bell.ca ([209.226.175.125]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20090715183907.HEIN7787.tomts5-srv.bellnexxia.net@toip6.srvr.bell.ca> for <3811-close@emacsbugs.donarmstrong.com>; Wed, 15 Jul 2009 14:39:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvYEAL+5XUpBXr7R/2dsb2JhbACBUdIBhAkF Received: from bas1-montreal02-1096728273.dsl.bell.ca (HELO ceviche.home) ([65.94.190.209]) by toip6.srvr.bell.ca with ESMTP; 15 Jul 2009 14:32:01 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 4F42EB41BF; Wed, 15 Jul 2009 14:39:05 -0400 (EDT) From: Stefan Monnier To: "Drew Adams" Cc: <3811-close@emacsbugs.donarmstrong.com> Subject: Re: bug#3811: 23.0.96; custom-group-members Message-ID: References: <5CA3346CC20B4ED3957C67730027CF19@us.oracle.com> <3603C9F0E5E94699A8CA397ED1986DB1@us.oracle.com> Date: Wed, 15 Jul 2009 14:39:05 -0400 In-Reply-To: <3603C9F0E5E94699A8CA397ED1986DB1@us.oracle.com> (Drew Adams's message of "Wed, 15 Jul 2009 10:13:32 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > (let ((direct-members (custom-group-members symbol nil))) > (dolist (dm direct-members) > (if (eq (cadr dm) 'custom-group) > (setq members > (nconc (custom-group-members (car dm) nil t) > members)) Beware of infinite-recursion since the groups aren't guaranteed to form a DAG. > It would be even better to combine args GROUPS-ONLY and RECURSIVEP, but that > might mean problems for backward incompatibility. But perhaps something like > this would be OK? Don't know. Depends if you want to be able to get "all groups, recursively" or not. > We might also consider making this a command. Users could use it to > print out a list of the options and faces for a group. > Note that one use of the proposed recursive behavior is for a user to > create a custom group that represents a collection of personal > settings (across other custom groups), and then to share those > settings with others. (See the emacs-devel discussion of "skins" as > custom groups.) > A user Jane could, for example, use `custom-add-to-group' with group > `jane', and then she could publish the `jane' settings for others, > retrieving them using `custom-group-members'. The only other piece > missing would then be a way for non-Lisp users to do the equivalent of > `custom-add-to-group' using only the Customize UI. That is, we would > provide easy ways to specify that certain options and faces should be > added to group `jane'. Isn't that going in the same direction as Custom themes? In any case, it's way out of the scope of this bug report, which I hence close. Stefan ------------=_1247683505-10680-0--