'Saves the content of the buffer.'

def save_buffer(self):

    if (self._unsaved or self._codefunc):
        try:
            if self._savefunc(self._caller, self._buffer):
                self._unsaved = False
        except Exception as e:
            self._caller.msg(_ERROR_SAVEFUNC.format(error=e))
    else:
        self._caller.msg(_MSG_SAVE_NO_CHANGE)
