From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I discover group name?
Date: Mon, 26 Sep 2016 21:32:01 +0300 [thread overview]
Message-ID: <8760piikbi.fsf@gavenkoa.example.com> (raw)
In-Reply-To: 6f5c24b4-28a3-445b-bd35-332004b28327@default
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/
next prev parent reply other threads:[~2016-09-26 18:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-26 11:45 How can I discover group name? Oleksandr Gavenko
2016-09-26 14:42 ` Drew Adams
2016-09-26 18:32 ` Oleksandr Gavenko [this message]
2016-09-26 20:53 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760piikbi.fsf@gavenkoa.example.com \
--to=gavenkoa@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.