code: def load(self, filename, set_current=True, add_where='end'):
          
          filename = osp.abspath(to_text_string(filename))
          self.starting_long_process.emit(_("Loading %s...") % filename)
          text, enc = encoding.read(filename)
          finfo = self.create_new_editor(filename, enc, text, set_current,
                                         add_where=add_where)
          index = self.data.index(finfo)
          self._refresh_outlineexplorer(index, update=True)
          self.ending_long_process.emit("")
          if self.isVisible() and self.checkeolchars_enabled \
             and sourcecode.has_mixed_eol_chars(text):
              name = osp.basename(filename)
              self.msgbox = QMessageBox(
                      QMessageBox.Warning,
                      self.title,
                      _("<b>%s</b> contains mixed end-of-line "
                        "characters.<br>Spyder will fix this "
                        "automatically.") % name,
                      QMessageBox.Ok,
                      self)
              self.msgbox.exec_()
              self.set_os_eol_chars(index)
          self.is_analysis_done = False
          return finfo
docs: Load filename, create an editor instance and return it
          *Warning* This is loading file, creating editor but not executing
          the source code analysis -- the analysis must be done by the editor
          plugin (in case multiple editorstack instances are handled)