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: Thu, 25 Jan 2007 23:34:13 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

> (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.


        Stefan




reply via email to

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