Re: defcustoms in style/*.el
Ralf Angeli <[email protected]> Tue, 08 Mar 2005 12:17:49 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* David Kastrup (2005-03-08) writes: >>>> I'd rather like to have this solved with autoload. But as we saw, >>>> Customize is not able to build a buffer with autoloaded defcustoms >>>> as they don't provide information to which group they belong. >>> >>> Well, so what? Then we'll just place explicit :group tags into every >>> defcustom. I don't see the problem. >> >> Could you elaborate on that? >> >> I tried >> >> (custom-autoload (quote LaTeX-beamer-item-overlay-flag) "style/beamer") >> >> which did not work[1] despite `LaTeX-beamer-item-overlay-flag' having had >> a ":group 'LaTeX-macro" tag until yesterday. (It now has a ":group >> 'LaTeX-style" tag.) And I am not really sure if I am bending the >> definition of `custom-autoload' too much by using something like >> "style/beamer". > > Ok, so maybe I misunderstood the process. Would using any of > (defun custom-add-to-group (group option widget) [...] > be helpful for the task at hand? It seems to work. With tex-style.el not loaded, try (progn (custom-autoload 'LaTeX-beamer-item-overlay-flag "tex-style") (custom-add-to-group 'emacs 'LaTeX-beamer-item-overlay-flag 'custom-variable) (customize-group 'emacs)) But I am not sure if this helps much because there still is the problem with the style files not being in load-path. Using "style/whatever" probably only works by accident. In addition it would be nice if one would not have to deal with Customize internals to achieve this. It seems a bit dangerous. -- Ralf