Re: defcustoms in style/*.el
Ralf Angeli <[email protected]>
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
* Reiner Steib (2005-03-05) writes: [defustoms in AUCTeX style files] > Do you (and other people) agree, that it would be desirable to have > those custom variables available after loading AUCTeX? Yes, but I dislike the idea of moving them out of the style files. >>> An alternative approach would be to collect those defcustoms in a >>> separate file, say (la)tex-style.el, and require this file somewhere. >>> >>> WDYT? >> >> Would it be possible to autoload these defcustoms? At least the Elisp >> manual states that this can be done with ;;;###autoload cookies: > > I don't think so. Our installation process would need to parse the > style/*.el files and create a e.g. tex-autoload.el file (or put them > in tex-site.el?). And this file needs to be loaded at startup. And I > doubt that this approach would work nicely because the usual Emacs > load process ((load "beamer.el") and friends) won't work because > style/ is not supposed to be in `load-path'. (I didn't test this, > though. Maybe I'm wrong.) 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. If they are related to latex-mode, they should go into latex.el; analogously for other modes. This would also fit with other customization options in mode-specific files which won't show up unless the file gets loaded by opening a file which triggers the mode. -- Ralf