From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: About `unload-feature' Date: Tue, 01 Jan 2013 20:10:03 -0500 Organization: A noiseless patient Spider Message-ID: References: <20130102063146.c312c58395fceffea990bfb2@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1357089011 27979 80.91.229.3 (2 Jan 2013 01:10:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2013 01:10:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 02 02:10:28 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TqCqh-00015A-RK for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Jan 2013 02:10:27 +0100 Original-Received: from localhost ([::1]:58404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqCqS-0005Eh-Gz for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jan 2013 20:10:12 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Injection-Info: barmar.motzarella.org; posting-host="78fb7125a45724f15e21604c94a7d968"; logging-data="14107"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+z8f5vcMNmF6eEHmecWGW" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:eouEprKBdU21ex5uTV7B+iYA/ho= Original-Xref: usenet.stanford.edu gnu.emacs.help:196075 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88386 Archived-At: In article , Dmitry Gutov wrote: > Xue Fuqiao 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, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***