Ejemplo n.º 1
0
 def save(self):
     """Saves the current buffer to the file"""
     assert getattr(self, "filename", None) is not None
     fd = SafeFileWrite(self.filename)
     fd.write(self._sc.get_text())
     fd.close()
     self._sc.set_save_point()
Ejemplo n.º 2
0
 def save(self):
     """Saves the current buffer to the file"""
     assert getattr(self, "filename", None) is not None
     fd = SafeFileWrite(self.filename)
     fd.write(self._sc.get_text())
     fd.close()
     self._sc.set_save_point()
Ejemplo n.º 3
0
 def save(self):
     """Saves the current buffer to the file"""
     assert getattr(self, "filename", None) is not None
     fd = SafeFileWrite(self.filename)
     fd.write(self._sc.get_text())
     fd.close()
     self._sc.set_save_point()
     self.service.boss.call_command('buffermanager',
         'reset_current_document')