Re: defcustoms in style/*.el

Ralf Angeli <[email protected]> Sat, 05 Mar 2005 18:21:15 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Reiner Steib (2005-03-05) writes:

> On Sat, Mar 05 2005, Ralf Angeli wrote:
>
>> I looked at loaddefs.el and found `custom-autoload'.  If I am not
>> mistaken we could use this instead of an ;;;###autoload cookie.
>> Wether these custom-autoloads go into tex-site.el, tex.el, latex.el
>> etc. probably depends on what the defcustoms are used for.
>
> This doesn't help with the load problem I mentioned:
>
> Putting...
>   (custom-autoload (quote LaTeX-beamer-foo-variable) "beamer")
> ... `tex-site.el (or ...) will not trigger loading "style/beamer.elc"
> with `M-x customize-group'.  Or am I missing something?

Hm, the autoload mechanism does not allow to define which group the
defcustom will belong to. )c:

I tried that with

(custom-autoload (quote LaTeX-beamer-item-overlay-flag) "style/beamer")

which at least allows the variable to be accessible with `M-x
customize-variable RET' despite the file not being in load-path.

In that case I'd probably leave things as they are.  But I won't
object if others want to have the defcustoms defined in style files
moved into a separate file (possibly in the style/ subdirectory).

Peter's suggestion seems a bit radical to me because we have some
defcustoms which use non-trivial functions for their default value or
:set directives.  And this could complicate things.

-- 
Ralf