emacs-devel
[Top][All Lists]
Advanced

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

Re: unload-feature questions and thoughts


From: David Kastrup
Subject: Re: unload-feature questions and thoughts
Date: Sun, 04 Feb 2007 20:14:41 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

"Juanma Barranquero" <address@hidden> writes:

> On 2/4/07, David Kastrup <address@hidden> wrote:
>
>> We had this discussion already.  IIRC, load could be used multiple
>> times and in so many contexts, that is was not reasonable to expect it
>> to be undoable.
>
> OTOH, `unload-feature' exists for a reason; and packages that do
> non-standard things (like redefining standard functions) can define
> their own unload functions.
>
> But question 3) was not about unloading, though I mentioned it at the
> end; it was about the difference in the resulting 'autoload property
> of function symbols depending on whether you use the autoloading vs.
> the normal load/require mechanisms.
>
>> Before we coded this hack, there was a discussion on emacs-devel
>> because I had been surprised, too.
>
> Couldn't AUCTeX just define AUCTeX-unload-hook and do whatever it is
> necessary?

It defines tex-site-unload-hook already.  But "whatever is necessary"
pretty much means restoring all functions overwritten by AUCTeX, and
there is no point in not using the autoload unloader for that.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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