Commits

Anonymous committed e034b15

renamed rope-occurrences-goto-occurrence to rope-occurrences-goto

Comments (0)

Files changed (1)

ropemacs/__init__.py

         lisp.set_buffer(buffer)
         lisp.toggle_read_only(1)
         lisp.set(lisp["next-error-function"], lisp.rope_occurrences_next)
-        lisp.local_set_key('\r', lisp.rope_occurrences_goto_occurrence)
+        lisp.local_set_key('\r', lisp.rope_occurrences_goto)
         lisp.local_set_key('q', lisp.delete_window)
 
     def show_doc(self, docs, altview=False):
 def message(message):
     lisp.message(message.replace('%', '%%'))
 
-def occurrences_goto_occurrence(other=True):
+def occurrences_goto(other=True):
     if lisp.line_number_at_pos() < 3:
         lisp.forward_line(3 - lisp.line_number_at_pos())
     lisp.end_of_line()
     end = lisp.point()
     lisp.beginning_of_line()
-    start = lisp.point()
-    line = lisp.buffer_substring_no_properties(start, end)
+    line = lisp.buffer_substring_no_properties(lisp.point(), end)
     tokens = line.split()
     if tokens:
         filename = tokens[0]
         resource = _interface._get_resource(filename)
         LispUtils().find_file(resource.real_path, other=other)
         lisp.goto_char(offset + 1)
-occurrences_goto_occurrence.interaction = ''
+occurrences_goto.interaction = ''
 
 def occurrences_next(arg, reset):
     lisp.display_buffer('*rope-occurrences*')
     if lisp.eobp():
         lisp.message("Cycling rope occurences")
         lisp.goto_char(lisp.point_min())
-    occurrences_goto_occurrence(other=False)
+    occurrences_goto(other=False)
 occurrences_next.interaction = ''
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.