code: def close_file_from_name(self, filename):
          
          filename = osp.abspath(to_text_string(filename))
          index = self.editorstacks[0].has_filename(filename)
          if index is not None:
              self.editorstacks[0].close_file(index)
docs: Close file from its name