emacs-devel
[Top][All Lists]
Advanced

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

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


From: Lute Kamstra
Subject: Re: Removing unloaded functions from auto-mode-alist.
Date: Wed, 20 Apr 2005 01:14:22 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

[...]

>> Won't work.  Autoloads corresponding to a different file than the
>> loaded one don't get restored.
>
> That's a bug which we should fix.

unload-feature restores the (autoload ...) form that is present in the
autoload property of the symbol.  As I understand it, that autoload
property only gets set by do_autoload.  do_autoload is called when an
autoloaded function is first called by the lisp interpreter.
(do_autoload also loads the file that defines that function.)  So if
something other than do_autoload loads a file that defines a function
that had an autoload definition before, that old autoload definition
won't be recorded.

Maybe we can shift recording the old autoload definition from
do_autoload to Fload?

> In the mean time, you can use an auctex-override-unload-hook to re-install
> the autoloads.

Don't you mean auctex-unload-hook?

Lute.




reply via email to

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