13.4.9 Setting the unsaved document indicator on Cocoa

The new function
capi:interface-document-modified-p
gets and sets the document-modified flag in a
capi:interface
. Currently this only has a visible effect on Cocoa, where an interface whose document is modified is flagged by adding a dark dot in the middle of its Close button (the red button at top-left of the window).