Macro
lispworks
define-action name-or-list action-name data &rest specs =>
A list or action list object.
A general lisp object.
An object.
A list.
define-action macro adds a new action to the specified list; this action will be executed according to the action-list's execution-function (seeexecute-actions) when executed. If the action-list specified by name-or-list does not exist, then this is handled according to the value of *handle-missing-action-list*. equalp). It uniquely identifies this action within its list (as opposed to among all lists). equalp to the action-name), then the notification and subsequent handling of this attempt is controlled by the values in the list *handle-existing-action-in-action-list*. This is to prevent problems due to re-evaluating an action definition inappropriately. Notification and redefine behavior can be overridden by using the:force keyword argument. In this case, any required redefinition is performed unconditionally and without notification. :after The following element in specs is a UID.:after specifies that the action-item being defined must be run after the action-item named. If there is no action-item with a matching name, the restriction is ignored.
:before Like:after, but this action-item must be run before the one specified.
:after and:before can be specified as many times as necessary to describe the ordering constraints of this action-item with respect to its neighbors. :onceSpecifies that this action-item should be executed only once; after execution, it is disabled.
:force Specifies that this definition should override any previous definition of this action-item, rather than be subject to the value of *handle-existing-action-in-action-list*.
(define-action :network-startup "Reset decnet buffers"
'(decnet::reset-network-buffers
*net-buffers*)
:after "Reset core network"
:once))
undefine-action