gv-define-simple-setter

gv-define-simple-setter is an autoloaded Lisp macro in `gv.el'.

(gv-define-simple-setter NAME SETTER &optional FIX-RETURN)

Define a simple setter method for generalized variable NAME.
This macro is an easy-to-use substitute for `gv-define-expander' that works
well for simple place forms. Assignments of VAL to (NAME ARGS...) are
turned into calls of the form (SETTER ARGS... VAL).

If FIX-RETURN is non-nil, then SETTER is not assumed to return VAL and
instead the assignment is turned into something equivalent to
(let ((temp VAL))
(SETTER ARGS... temp)
temp)
so as to preserve the semantics of `setf'.