* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix re setf.

This commit is contained in:
Glenn Morris 2013-02-14 09:16:47 -08:00
parent 213ac1686c
commit 9e16c3b44b
2 changed files with 12 additions and 7 deletions

View file

@ -1,3 +1,7 @@
2013-02-14 Glenn Morris <rgm@gnu.org>
* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
2013-02-14 Stefan Monnier <monnier@iro.umontreal.ca> 2013-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
* net/goto-addr.el (goto-address-fontify): Add start and end args. * net/goto-addr.el (goto-address-fontify): Add start and end args.

View file

@ -132,13 +132,14 @@ BODY contains code to execute each time the mode is enabled or disabled.
:require SYM Same as in `defcustom'. :require SYM Same as in `defcustom'.
:variable PLACE The location to use instead of the variable MODE to store :variable PLACE The location to use instead of the variable MODE to store
the state of the mode. This can be simply a different the state of the mode. This can be simply a different
named variable, or more generally anything that can be used named variable, or a generalized variable.
with the CL macro `setf'. PLACE can also be of the form PLACE can also be of the form \(GET . SET), where GET is
\(GET . SET), where GET is an expression that returns the an expression that returns the current state, and SET is
current state, and SET is a function that takes one argument, a function that takes one argument, the new state, and
the new state, and sets it. If you specify a :variable, sets it. If you specify a :variable, this function does
this function does not define a MODE variable (nor any of not define a MODE variable (nor any of the terms used
the terms used in :variable). in :variable).
:after-hook A single lisp form which is evaluated after the mode hooks :after-hook A single lisp form which is evaluated after the mode hooks
have been run. It should not be quoted. have been run. It should not be quoted.