




 
To make an application quit when one of its CAPI windows is closed, make that window's 
destroy-function
 call 
quit
.
To arrange for a delivered CAPI application to quit automatically when all of its CAPI windows are closed, call 
deliver
 with 
:quit-when-no-windows t
.
CAPI User Guide (Unix version) - 30 Aug 2011