code: def write_and_quit_all(editor):
      
      eb = editor.window_arrangement.active_editor_buffer
      if eb.location is None:
          editor.show_message(_NO_FILE_NAME)
      else:
          eb.write()
          quit(editor, all_=True, force=False)
docs: Write current buffer and quit all.