![]() | ![]() | ![]() | undefine-ks | ![]() |
|
| ks-name
&rest ignored-initargs
=> deleted-ks-unit-instance | [Macro] |
Purpose
Undefine (delete) a knowledge source (KS).
Package :agenda-shell
Module :agenda-shell
Arguments and values
| ks-name | A symbol naming the KS (not evaluated, but the remaining arguments are evaluated) | |
| ignored-initargs | The remaining initialization arguments are ignored | |
| deleted-ks-unit-instance | A KS unit instance or nil
|
Returns
The deleted KS unit instance, if
KS ks-name was undefined (deleted).
Description
A KS is undefined by deleting the unit instance
corresponding to the KS. The undefine-ks macro provides a
convenient shortcut for undefining a KS by minimally editing the
defining form (such as from within an editor buffer).
See also
define-ks
ks-enabled-p
Examples
Undefine the KS named initial. The following forms are all
equivalent:
> (undefine-ks initial
:trigger-events '((start-control-shell-event))
:execution-function #'initial-ks-function)
#<ks initial [Deleted]>
> (undefine-ks initial)
#<ks initial [Deleted]>
> (delete-instance
(find-instance-by-name 'initial '(ks :plus-subclasses)))
#<ks initial [Deleted]>
>
The GBBopen Project
![]() | ![]() | ![]() | undefine-ks | ![]() |