(setf (fdefinition function-name) new-definition)
definition - Current global function definition named by function-name.
new-definition - a function.
An error of type undefined-function is signaled in the non-setf case if function-name is not fbound.
setf can be used with fdefinition to replace a global function definition when the function-name's function definition does not represent a special form. setf of fdefinition requires a function as the new value. It is an error to set the fdefinition of a function-name to a symbol, a list, or the value returned by fdefinition on the name of a macro or special form.