[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] Re: Autoloads for RefTeX

From: Ralf Angeli
Subject: [AUCTeX-devel] Re: Autoloads for RefTeX
Date: Sun, 04 Mar 2007 18:04:26 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

* Ralf Angeli (2007-03-03) writes:

> * Carsten Dominik (2007-03-03) writes:
>> 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.
> It would have the charm of `(require 'reftex)' or `(load "reftex.el")'
> being more intuitive than having to do the same with
> reftex-autoloads.el.

Okay, this is implemented now.

Depending on how RefTeX was installed there might be different
measures required for activating it.  If it is installed in
`load-path' a simple `(require 'reftex)' would be enough.  If it is
not installed in `load-path', one could do

 a) (load "<dir>/reftex.el")

    AFAICS <dir> can be a relative location below `load-path'.  So if
    RefTeX is installed in /usr/local/share/emacs/site-lisp/reftex
    (and nothing like subdirs.el adds the directory to `load-path')
    one could use `(load "reftex/reftex.el")'.

 b) (add-to-list 'load-path "/path/to/reftex/dir")
    (require 'reftex)

The latter is probably what I would recommend to users because it is
consistent with the case where RefTeX is installed in `load-path'.
What do others think?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]