emacs-devel
[Top][All Lists]
Advanced

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

Re: How global is a define-global-minor-mode mode?


From: Stefan Monnier
Subject: Re: How global is a define-global-minor-mode mode?
Date: Sun, 28 Jan 2007 23:32:55 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

>     The :require thingy is a risk: if you move the definition of the mode to
>     another file, then the user's customizations will be broken (it happened
>     with global-font-lock-mode).

> It seems that you are saying the risk is that the :require has to
> specify the file name, so if you move the definition to another file,
> the :require argument will be wrong.

> If the :require is generated automatically, perhaps it would never be
> wrong.

No, the :require is of course correct.  The problem is that when you set the
variable, the current :require gets copied into your .emacs file, and when
you later run an Emacs where that minor mode was moved to another file, your
.emacs still points to the old location and the startup fails to set the var
(and complains that the file doesn't define function bar-mode).


        Stefan




reply via email to

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