Function: define-setf-method

define-setf-method is a function alias for define-setf-expander, defined in cl.el.gz.

This macro is obsolete since 27.1; use define-setf-expander instead.

Signature

(define-setf-method NAME ARGLIST &rest BODY)

Documentation

Define a setf method.

This method shows how to handle setfs to places of the form
(NAME ARGS...). The argument forms ARGS are bound according to
ARGLIST, as if NAME were going to be expanded as a macro, then the BODY forms are executed and must return a list of five elements: a temporary-variables list, a value-forms list, a store-variables list
(of length one), a store-form, and an access-form.

See gv-define-expander, and gv-define-setter for better and simpler ways to define setf-methods.

View in manual

Aliases

define-setf-method (obsolete since 27.1)