Commits

Ali Gholami Rudi  committed 99288cf

ropemacs: validating projects before each action

  • Participants
  • Parent commits 36941fb

Comments (0)

Files changed (2)

File docs/dev/workingon.txt

 ropemacs Mode
 =============
 
+- Validating projects before every command
+
 * Only activating the keybinding in python files
 * Specifying refactoring options
 * Updating docs

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: