Commits

Ali Gholami Rudi  committed 40e2cba

ropemacs: added push_mark() and current_word() to LispUtils

  • Participants
  • Parent commits 3edbc11

Comments (0)

Files changed (2)

File ropecommon/interface.py

         definition = codeassist.get_definition_location(
             self.project, self._get_text(), offset, resource, maxfixes)
         if tuple(definition) != (None, None):
-            lisp.push_mark()
+            self.env.push_mark()
             self._goto_location(definition[0], definition[1])
         else:
             self.env.message('Cannot find the definition!')
     def auto_import(self):
         if not self.interface._check_autoimport():
             return
-        name = lisp.current_word()
+        name = self.env.current_word()
         modules = self.autoimport.get_modules(name)
         if modules:
             if len(modules) == 1:
                                   empty_goto=False, fit_lines=fit_lines)
         lisp.local_set_key('q', lisp.bury_buffer)
 
+    def current_word(self):
+        return lisp.current_word()
+
+    def push_mark(self):
+        lisp.push_mark()
+
 
 class _LispProgress(object):