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: Tue, 23 Jan 2007 20:15:42 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

>>>> Isn't it the case that it works if the minor mode function
>>>> corresponding to the variable is autoloaded?  Otherwise, IIRC you need
>>>> to add a :require to the definition of the minor mode.
>> 
>>> Not really: if the global minor mode is autoloaded, then :require is
>>> a nuisance,
>> 
>>> I don't follow.  Could you explain why it is a nuisance?
>> 
>> 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).

> I have lost my way here, but I did some tests to try to understand. If I use
> defcustom with a :set function this will be called when the elisp file is
> loaded. Why can't something similar be done for define-global-minor-mode
> also? It is a global mode and then :set is passed to defcustom, or?

I don't understand your question.  What do you suggest exactly and for
what purpose?

> BTW should not the name be define-globalized-minor-mode as was
> suggested before?

I believe so, yes.  Feel free to implement this change,


        Stefan




reply via email to

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