[Top][All Lists]

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

Re: Removing unloaded functions from auto-mode-alist.

From: David Kastrup
Subject: Re: Removing unloaded functions from auto-mode-alist.
Date: Wed, 20 Apr 2005 21:00:59 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>>> In the mean time, you can use an auctex-override-unload-hook to
>>>> re-install the autoloads.
>>> Don't you mean auctex-unload-hook?
>> Probably.
> No.  I was talking about a new file auctex-override.el which
> provides the feature auctex-override and whose unloading runs thus
> the auctex-override-unload-hook.  This file would be the only one
> fiddling with non-mixed-case functions and variables.

That's pretty much useless.  An installation of AUCTeX that does not
occupy the function cells of tex-mode and latex-mode and other
lowercase names is essentially dead as it won't get invoked on file
names and mode line cookies.  And if tex-mode.el is loaded after
AUCTeX files, it will even wipe out the native TeX-mode and LaTeX-mode
definitions of AUCTeX.

So auctex.el without auctex-override.el would be a waste of time.  In
the rare case that you want a mixture of TeX modes, you can just
require auctex (which only sets up autoloads and aliases) and then
overwrite the autoloads/aliases you don't want, letting them refer to
tex-mode.el again.

But to get something even close to working, you'll need to do the
equivalent of

(flet (LaTeX-mode)
  (require 'tex-mode))

so that tex-mode does not permanently remove AUCTeX's LaTeX-mode.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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