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: Chong Yidong
Subject: Re: How global is a define-global-minor-mode mode?
Date: Sat, 27 Jan 2007 14:43:00 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> (define-minor-mode temp-mode
>>   "dummy"
>>   :init-value nil
>>   :lighter nil
>>   :global t
>>   :group 'temp-test
>>   :initialize 'custom-initialize-set
>>   :set (lambda(sym val)
>>          (message "  temp-mode :set => sym=%s, val=%s" sym val)
>>          (set-default sym val))
>>   (message "  temp-mode body => temp-mode=%s, current-buffer=%s" temp-mode 
>> (current-buffer)))
>
> I do not care to support a define-minor-mode with a :set.  And same thing
> about a :initialize.  The same holds for define-global-minor-mode of course.
>
> Please take a big step back and tell me what you want to do, rather than
> try to ask how to get your ugly-hack to work.

I concur.  This should not be a FOR-RELEASE bug.





reply via email to

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