[Top][All Lists]

[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: Mon, 22 Jan 2007 09:55:25 -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.

> Could define-global-minor-mode do that automatically?

Not really: if the global minor mode is autoloaded, then :require is
a nuisance, so to do it automatically, define-global-minor-mode would have
to know whether it's autoloaded or not.  And in most/all cases it's
autoloaded anyway and if not, it should.


reply via email to

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