8.8 Closing windows

To close a CAPI interface window unconditionally, call the generic function
destroy
.

To close a CAPI interface window such that its
confirm-destroy-function
is called first to allow the user to confirm, call
quit-interface
. You must call it in the window's process, for example in the callback of a menu item.