code: def do_autosave(self):
          
          logger.debug('Autosave triggered')
          stack = self.editor.get_current_editorstack()
          stack.autosave.autosave_all()
          self.start_autosave_timer()
docs: Instruct current editorstack to autosave files where necessary.