>>>> "Hrvoje" == Hrvoje Niksic
<hniksic(a)iskon.hr> writes:
Hrvoje> sperber(a)informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
writes:
> So, customize puts its variables into ~/.emacs according to a
> heuristic I haven't groked yet fully. (Needless to say, this was a
> bad idea ...)
Hrvoje> IIRC, this was not so under original Per's design. Stallman insisted
Hrvoje> on using ~/.emacs.
That's what I meant by "needless to say" :-)
> What's a politically correct (and preferably simple) to
determine
> the set/region of forms in ~/.emacs under the control of customize?
> Can I search for (custom-load-themes ...) or (custom-set-variables
> ...) and take the region from there to the end of the file? Or can
> I take all forms starting with (custom-... ...). Or what?
Hrvoje> I think you should do it the way Customize does it. This is virtually
Hrvoje> guaranteed to be correct, because then if somebody uses a weird .emacs
Hrvoje> format, Customize will not work with it either.
Hrvoje> The way Custom does it is to read the top-level forms until the form
Hrvoje> whose car is the required symbol is found. Look at
Hrvoje> `custom-save-delete' for an example of that. Unless I'm missing
Hrvoje> 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.
--
Cheers =8-} Chipsy
Friede, Völkerverständigung und überhaupt blabla