all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-devel@gnu.org
Subject: Re: Getting custom variables in a group
Date: Mon, 30 Apr 2018 18:24:40 -0700	[thread overview]
Message-ID: <87tvrs182v.fsf@ericabrahamsen.net> (raw)
In-Reply-To: jwv8t942pcp.fsf-monnier+gmane.emacs.devel@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I'm having an oddly hard time finding out programatically all the custom
>> variables in a custom group (recursively),
>
> The variables and subgroups of a custom group are stored in the
> `custom-group` property of the group's symbol.

I'd started with 'gnus and so only saw more custom-groups, I didn't
realize you eventually got down to custom-variables. That's exactly what
I needed, thanks.

>> or which group a custom variable belongs to.
>
> For this one you're going to have to mapatom to enumerate all symbols,
> looking for the var in the `custom-group` property.

Easier to come in through the other end!

> You can look at custom-add-parent-links to find inspiration (and feel
> free to refector this function so you can reuse part of its code rather
> than duplicate it).

Okay, this is starting to make sense. Seems like it might be useful to
have generalized `custom-find-parents' and `custom-find-children'
functions. I'll take a look.




      reply	other threads:[~2018-05-01  1:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30 22:25 Getting custom variables in a group Eric Abrahamsen
2018-05-01  0:34 ` Stefan Monnier
2018-05-01  1:24   ` Eric Abrahamsen [this message]

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=87tvrs182v.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-devel@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.