remove_set_function

remove_set_function — removes a set function from a symbol.

Syntax

remove_set_function (symbol, s_exp)

		

Arguments

symbol

The symbol from which to remove the expression.

s_exp

An expression set for the symbol, such as that added by add_set_function.

Returns

The expression, in Lisp syntax, which was removed, or nil if none was removed.

Description

This function removes a set expression from the symbol. The s_exp is compared to all of the current expression set for the symbol using the comparison function eq.

Example

Gamma> b = 5;
5
Gamma>  add_set_function(#b,#princ("changed\n"));
(princ "changed\n")
Gamma> b = 4;
changed
4
Gamma> remove_set_function(#b,#princ("changed\n"));
(princ "changed\n")
Gamma> b = 3;
3
Gamma> 
		

See Also

add_set_function, when_set_fns