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: Mon, 05 Feb 2007 08:21:47 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Juanma Barranquero" <address@hidden> writes:

> On 2/4/07, David Kastrup <address@hidden> wrote:
>
>> 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.
>
> In fact (and this is not a proposal, at least not now), the current
> working of `unload-feature' is a bit puzzling. Instead of running
> either `FEATURE-unload-hook' (if found) or its normal heuristics, it'd
> be better if it ran a FEATURE-unload-function, which would return t to
> stop, or nil to *also* use the function's current heuristics. That
> way, a package could define a FEATURE-unload-function to undo unusual
> things, and leave the burden of the unloading to `unload-feature'.

You are confused.  FEATURE-unload-hook only caters for removing
FEATURE-related functions from hook variables (if FEATURE-unload-hook
is not used, Emacs basically walks through all variables ending in
"-hook" and removes variables from FEATURE from them).  All the rest
are unloaded as normal unless FEATURE-unload-hook removes the
corresponding FEATURE from unload-hook-features-list.

-- 
David Kastrup




reply via email to

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