unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* About `unload-feature'
@ 2013-01-01 22:31 Xue Fuqiao
  2013-01-01 23:23 ` Dmitry Gutov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Xue Fuqiao @ 2013-01-01 22:31 UTC (permalink / raw)
  To: help-gnu-emacs

(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.
-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: About `unload-feature'
  2013-01-01 22:31 About `unload-feature' Xue Fuqiao
@ 2013-01-01 23:23 ` Dmitry Gutov
  2013-01-02 13:05   ` Xue Fuqiao
       [not found] ` <mailman.16498.1357082632.855.help-gnu-emacs@gnu.org>
  2013-01-08 15:50 ` Stefan Monnier
  2 siblings, 1 reply; 5+ messages in thread
From: Dmitry Gutov @ 2013-01-01 23:23 UTC (permalink / raw)
  To: Xue Fuqiao; +Cc: help-gnu-emacs

Xue Fuqiao <xfq.free@gmail.com> 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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: About `unload-feature'
       [not found] ` <mailman.16498.1357082632.855.help-gnu-emacs@gnu.org>
@ 2013-01-02  1:10   ` Barry Margolin
  0 siblings, 0 replies; 5+ messages in thread
From: Barry Margolin @ 2013-01-02  1:10 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.16498.1357082632.855.help-gnu-emacs@gnu.org>,
 Dmitry Gutov <dgutov@yandex.ru> wrote:

> Xue Fuqiao <xfq.free@gmail.com> 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 ***


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: About `unload-feature'
  2013-01-01 23:23 ` Dmitry Gutov
@ 2013-01-02 13:05   ` Xue Fuqiao
  0 siblings, 0 replies; 5+ messages in thread
From: Xue Fuqiao @ 2013-01-02 13:05 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: help-gnu-emacs

On Wed, 02 Jan 2013 03:23:41 +0400
Dmitry Gutov <dgutov@yandex.ru> wrote:

> Looks like a hyperbole.
> 
> It would still function, but signal [lots of] "function is undefined" errors.

Thanks.
-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: About `unload-feature'
  2013-01-01 22:31 About `unload-feature' Xue Fuqiao
  2013-01-01 23:23 ` Dmitry Gutov
       [not found] ` <mailman.16498.1357082632.855.help-gnu-emacs@gnu.org>
@ 2013-01-08 15:50 ` Stefan Monnier
  2 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2013-01-08 15:50 UTC (permalink / raw)
  To: help-gnu-emacs

> What does `ceasing to function' mean?

To see an example of "ceases to function", try for example:

   M-: (use-global-map (make-keymap)) RET

There are of course many other ways to make Emacs cease to function.
The sky is the limit.


        Stefan




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-08 15:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-01 22:31 About `unload-feature' Xue Fuqiao
2013-01-01 23:23 ` Dmitry Gutov
2013-01-02 13:05   ` Xue Fuqiao
     [not found] ` <mailman.16498.1357082632.855.help-gnu-emacs@gnu.org>
2013-01-02  1:10   ` Barry Margolin
2013-01-08 15:50 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).