From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: How can I discover group name? Date: Mon, 26 Sep 2016 21:32:01 +0300 Organization: Oleksandr Gavenko , http://defun.work/ Message-ID: <8760piikbi.fsf@gavenkoa.example.com> References: <87eg46j34p.fsf@gavenkoa.example.com> <6f5c24b4-28a3-445b-bd35-332004b28327@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1474922203 31673 195.159.176.226 (26 Sep 2016 20:36:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2016 20:36:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) To: 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:36:39 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 1bocdY-0006Z3-Ux for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Sep 2016 22:36:29 +0200 Original-Received: from localhost ([::1]:46546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bocdX-00081Q-Bg for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Sep 2016 16:36:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boahv-0000Yb-JV for help-gnu-emacs@gnu.org; Mon, 26 Sep 2016 14:32:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boahr-0003Od-BX for help-gnu-emacs@gnu.org; Mon, 26 Sep 2016 14:32:50 -0400 Original-Received: from [195.159.176.226] (port=34743 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boahr-0003Mt-5w for help-gnu-emacs@gnu.org; Mon, 26 Sep 2016 14:32:47 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1boahW-0003KW-Bk for help-gnu-emacs@gnu.org; Mon, 26 Sep 2016 20:32:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 102 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:CQeUnNXMC6uYw+uV9bxXUmMkVSQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-Mailman-Approved-At: Mon, 26 Sep 2016 16:35:45 -0400 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:111398 Archived-At: On 2016-09-26, Drew Adams wrote: >> 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 Emacs group: Customization of the One True Editor. State : visible group members are all at standard values. See also Manual. Editing Basic text editing facilities. Convenience Convenience features for faster editing. Files Support for editing files. **Text** Support for editing text files. ... Under "Text" group (if press RET on **Text**): Text group: Support for editing text files. State : visible group members are all at standard values. Show Value Text Mode Hook Hook run after entering Text mode. More Subgroups: Bib Major mode for editing bib files. Columns Prettify columns. Lpr Print Emacs buffer on line printer. Nroff Nroff mode. Outlines Support for hierarchical outlining. Picture Editing text-based pictures ("ASCII art"). ... Rst Support for reStructuredText documents. Table Text based table manipulation utilities. Tex Code related to the TeX formatter. Tildify Add hard spaces or other text fragments to text buffers. View Peruse file or buffer without editing. Within 'M-x customize-group RET TAB' I didn't see either "text" nor "Text". >> 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? Screens shown above. After executing: >> (defgroup xxx nil >> "xxx-mode customization." >> :group 'wp) I see my group under Text group: Text group: Support for editing text files. State : visible group members are all at standard values. Show Value Text Mode Hook Hook run after entering Text mode. More Subgroups: Bib Major mode for editing bib files. View Peruse file or buffer without editing. ... Xxx xxx-mode customization. ================================================================ 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? I discover proper name only after: $ ack -C 5 '(defgroup' $EMACS_SRC/lisp textmodes/rst.el 283- 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")) -- http://defun.work/