Commits

Ali Gholami Rudi  committed 99a03da

ropemacs: validating projects before each action

  • Participants
  • Parent commits e151668

Comments (0)

Files changed (1)

File rope/contrib/ropemacs.py

 
     @interactive()
     def close_project(self):
-        self.project.close()
-        self.project = None
+        if project is not None:
+            self.project.close()
+            self.project = None
+            lisp.message('Project closed.')
 
     def do_rename(self, newname, module=False):
         self._check_project()
     def _check_project(self):
         if self.project is None:
             lisp.call_interactively(lisp.rope_open_project)
+        else:
+            self.project.validate(self.project.root)
 
     def _reload_buffers(self, changed_resources):
         for resource in changed_resources: