code: def buffer_list(editor):
      
      def handler():
          wa = editor.window_arrangement
          for info in wa.list_open_buffers():
              char = '%' if info.is_active else ''
              eb = info.editor_buffer
              print(' %3i %-2s %-20s  line %i' % (
                    info.index, char, eb.location, (eb.buffer.document.cursor_position_row + 1)))
          six.moves.input('\nPress ENTER to continue...')
      run_in_terminal(handler)
docs: List all buffers.