emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting custom variables in a group


From: Eric Abrahamsen
Subject: Re: Getting custom variables in a group
Date: Mon, 30 Apr 2018 18:24:40 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]