help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

define-minor-mode: what's the purpose of the BODY argument?


From: Raffaele Ricciardi
Subject: define-minor-mode: what's the purpose of the BODY argument?
Date: Thu, 16 Aug 2012 11:49:10 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0

Hello there,

the documentation of `define-minor-mode' begins with:

— Macro: define-minor-mode mode doc [init-value [lighter [keymap]]]
keyword-args... body...

Then it continues with documenting what the purpose of each argument is, but it fails to do so for the BODY argument. So, what's the purpose of that argument? Is it code to be run every time the mode is activated or deactivated, and such
code can check `prefix-argument' to determine whether it should activate or
deactivate itself?

Thanks.


reply via email to

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