|
From: | Lennart Borgman (gmail) |
Subject: | Re: How global is a define-global-minor-mode mode? |
Date: | Sun, 31 Dec 2006 03:27:09 +0100 |
User-agent: | Thunderbird 1.5.0.9 (Windows/20061207) |
Richard Stallman wrote:
It looks like define-global-minor-mode simply fails to do anything to arrange to handle customization of the globalized mode's variable. Would someone please work on this?
I can't do that now, however I have a suggestion. define-globalized-minor-mode takes care of the nasty technical details, but maybe it could still be easier to use. If we assume that the minor mode to globalize is defined with define-minor-mode we know how to turn it on and off. How about something like this? :
:turn-on-if (lambda() ....) :turn-off-if (lambda() ...)where the two functions should used for turning on/off the minor mode in each buffer when the globalized mode is turned on/off.
[Prev in Thread] | Current Thread | [Next in Thread] |