[Top][All Lists]

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

Re: About `unload-feature'

From: Barry Margolin
Subject: Re: About `unload-feature'
Date: Tue, 01 Jan 2013 20:10:03 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Dmitry Gutov <address@hidden> wrote:

> Xue Fuqiao <address@hidden> writes:
> > (info "(elisp) Unloading") says:
> >
> > Before restoring the previous definitions, `unload-feature' runs 
> > `remove-hook'
> > to remove functions in the library from certain hooks. These hooks include
> > variables whose names end in `-hook' (or the deprecated suffix `-hooks'), 
> > plus
> > those listed in `unload-feature-special-hooks', as well as 
> > `auto-mode-alist'.
> > This is to prevent Emacs from ceasing to function because important hooks 
> > refer
> > to functions that are no longer defined.
> >
> > What does `ceasing to function' mean?  Can anybody help?  Thanks.
> Looks like a hyperbole.
> It would still function, but signal [lots of] "function is undefined" errors.

There are some hooks that are run very frequently -- if these signalled 
an error every time, Emacs would be effectively unusable.

Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

reply via email to

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