def set_scratch(self, scratch): """ Sets the scratch flag on the text buffer. When a modified scratch buffer is closed, it will be closed without prompting to save. """ return sublime_api.view_set_scratch(self.view_id, scratch)