sperber(a)informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) writes:
Hrvoje> The way Custom does it is to read the top-level forms
until
Hrvoje> the form whose car is the required symbol is found. Look at
Hrvoje> `custom-save-delete' for an example of that. Unless I'm
Hrvoje> missing something, it's very easy to implement.
The problem is: how do I determine the set of all "required
symbols"? It seems to be hardwired into cus-edit.el.
Well, you could look into what's hard-wired into cus-edit and use that
as your set. :-)
Your code needn't support all the future versions of Custom, because
those will use other init files anyway.