See read-editor-global-header. Call read-editor-global-footer even if read-editor-global-header returns #f.