All Manuals > LispWorks® User Guide and Reference Manual > 38 The LISPWORKS Package

remove-advice Function

Summary

Remove a piece of advice.

Package

lispworks

Signature

remove-advice function-dspec name

Arguments
function-dspec
A function-dspec Specifies the function definition to which the piece of advice belongs. See 7.5.1 Function dspecs for description of function-dspec.
name
A symbol naming the piece of advice to be removed. Since several pieces of advice may be attached to a single functional definition, the name is necessary to indicate which one is to be removed.
Description

The function remove-advice removes a piece of advice named name for the definition named by function-dspec. Advice is a way of altering the behavior of functions. Pieces of advice are associated with a function using defadvice. They define additional actions to be performed when the function is invoked, or alternative code to be performed instead of the function, which may or may not access the original definition. As well as being attached to ordinary functions, advice may be attached to methods and to macros (in this case it is in fact associated with the macro's expansion function).

hcl:delete-advice is a macro, identical in effect to remove-advice, except that you do not need to quote the arguments.

Notes

remove-advice is an extension to Common Lisp.

See also

defadvice
delete-advice
6 The Advice Facility


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:41