'Stack index has changed'

def current_changed(self, index):

    editor = self.get_current_editor()
    if (index != (-1)):
        editor.setFocus()
        if DEBUG_EDITOR:
            print('setfocusto:', editor, file=STDOUT)
    else:
        self.reset_statusbar.emit()
    self.opened_files_list_changed.emit()
    self.stack_history.refresh()
    self.stack_history.remove_and_append(index)
    if DEBUG_EDITOR:
        print('current_changed:', index, self.data[index].editor, end='    ', file=STDOUT)
        print(self.data[index].editor.get_document_id(), file=STDOUT)
    self.update_plugin_title.emit()
    if (editor is not None):
        self.current_file_changed.emit(self.data[index].filename, editor.get_position('cursor'))
