From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: How can I discover group name? Date: Mon, 26 Sep 2016 13:53:35 -0700 (PDT) Message-ID: <4d3133d4-4e95-4d16-a347-1b5dde0907f0@default> References: <87eg46j34p.fsf@gavenkoa.example.com> <6f5c24b4-28a3-445b-bd35-332004b28327@default> <8760piikbi.fsf@gavenkoa.example.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1474923288 21530 195.159.176.226 (26 Sep 2016 20:54:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2016 20:54:48 +0000 (UTC) To: Oleksandr Gavenko , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 26 22:54:44 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bocv6-0004Eb-M7 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Sep 2016 22:54:37 +0200 Original-Received: from localhost ([::1]:46612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bocv5-000667-2n for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Sep 2016 16:54:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bocuR-00063I-0D for help-gnu-emacs@gnu.org; Mon, 26 Sep 2016 16:53:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bocuN-00066p-SG for help-gnu-emacs@gnu.org; Mon, 26 Sep 2016 16:53:55 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:44273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bocuN-00066a-KO for help-gnu-emacs@gnu.org; Mon, 26 Sep 2016 16:53:51 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u8QKrlaY008334 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 26 Sep 2016 20:53:49 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u8QKrlMw003550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 26 Sep 2016 20:53:47 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u8QKrat3006157; Mon, 26 Sep 2016 20:53:47 GMT In-Reply-To: <8760piikbi.fsf@gavenkoa.example.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111400 Archived-At: > >> Within "M-x customize" I found "Text" group. > > > > I don't see that group, with `emacs -Q'. Perhaps it comes from > > some library that you are using? > > > > What does `M-x customize-group RET TAB' tell you? > > That's how to discover group names. > > M-x customize RET >=20 > Emacs group: Customization of the One True Editor. > State : visible group members are all at standard values. > See also Manual. >=20 > Editing=09=09 Basic text editing facilities. > Convenience=09=09 Convenience features for faster editing. > Files=09=09 Support for editing files. > **Text**=09 Support for editing text files. > ... Oops. Looks to me like a bug (#24549) that `M-x customize-group' does not recognize custom group `text'. > Under "Text" group (if press RET on **Text**): >=20 > Text group: Support for editing text files. > State : visible group members are all at standard values. >=20 > Show Value Text Mode Hook > Hook run after entering Text mode. More >=20 > Subgroups: > Bib=09=09 Major mode for editing bib files. > Columns=09=09 Prettify columns. > Lpr=09=09 Print Emacs buffer on line printer. > Nroff=09=09 Nroff mode. > Outlines=09=09 Support for hierarchical outlining. > Picture=09=09 Editing text-based pictures ("ASCII art"). > ... > Rst=09=09 Support for reStructuredText documents. > Table=09=09 Text based table manipulation utilities. > Tex=09=09 Code related to the TeX formatter. > Tildify=09=09 Add hard spaces or other text fragments to text > buffers. > View=09=09 Peruse file or buffer without editing. >=20 > Within 'M-x customize-group RET TAB' I didn't see either "text" nor > "Text". Me neither. I just filed bug #24549 for this. > >> I'd like to add my group to this group. Unfortunately this was failed: > >> (defgroup xxx nil > >> "xxx-mode customization." > >> :group 'text) > > ^^^^ 'Text, not 'text, if "Text" is the group name. > > > >> Searching around gave working piece: > >> (defgroup xxx nil > >> "xxx-mode customization." > >> :group 'wp) > >> > >> How can I guess "wp" name from customize buffer content? > > > > What is the relation between this and group "Text"? > > What do you see in the Customize buffer? >=20 > Screens shown above. After executing: >=20 > >> (defgroup xxx nil > >> "xxx-mode customization." > >> :group 'wp) >=20 > I see my group under Text group: >=20 > Text group: Support for editing text files. > State : visible group members are all at standard values. >=20 > Show Value Text Mode Hook > Hook run after entering Text mode. More >=20 > Subgroups: > Bib=09=09 Major mode for editing bib files. > View=09=09 Peruse file or buffer without editing. > ... > Xxx=09=09 xxx-mode customization. >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > My question is why does "Text" group require symbol 'wp' in "(defgroup > ...)" > call and how can I guess this symbol during navigation across *Customize* > buffers? Good question. I'm getting the impression that `text' is not a real group but is some other kind of (virtual) grouping of some other groups. I do not see it defined in the Lisp sources using `defgroup'. If it were defined using `defgroup', as usual, then I would expect that (1) you would be able to inherit from it directly and (2) it would be recognized by `customize-group'. > I discover proper name only after: >=20 > $ ack -C 5 '(defgroup' $EMACS_SRC/lisp >=20 > textmodes/rst.el > 283- >=20 > 284-(defgroup rst nil "Support for reStructuredText documents." > 285: :group 'wp > 286- :version "23.1" > 287- :link '(url-link "http://docutils.sourceforge.net/rst.html"))