[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Autoloads for RefTeX
From: |
Carsten Dominik |
Subject: |
Re: [AUCTeX-devel] Autoloads for RefTeX |
Date: |
Sat, 3 Mar 2007 20:21:51 +0100 |
Two things to keep in mind:
1. RefTeX uses a maybe non-standard way to load the different
subfiles like reftex-cite.el etc. It does not do (require
'reftex-cite).
Instead, reftex.el does contain autoload forms for all necessary entry
points of all other files. I did this when I split the one big
original file into many small ones, and back then I did not know a
better
way to do this. As a consequence, is it possible that not all necessary
entry points in the different files do have an ;;;###autoload cookie.
It might be necessary to add these, starting from the autoload forms
in reftex.el.
On Mar 3, 2007, at 19:04, Ralf Angeli wrote:
Hi,
the current installation instructions for RefTeX tell the user to put
autoloads for some entry functions manually into the user's init file.
I don't really like this because it is prone to fail when functions
move, it clutters the init file, and it unnecessarily exposes the
implementation of the package. So it generally is somewhat clunky.
Fully agreed
IMO a better approach would be to generate during installation a file
containing autoloads which the user then may load from the init file
in a similar way we currently do this for AUCTeX and preview-latex and
how install.el does it. The file could even be part of the
distribution.
Instead of during installation, it could be done during creation
of the distribution package.
I guess an alternative could be to make reftex.el a small file
with only autoloads and basic setup, and then have a reftex-base.el
with the current content of reftex.el.
- Carsten