Commits

Ali Gholami Rudi  committed 53ce33a

occurrences-goto-occurrence: line-beginning-position not in xemacs

  • Participants
  • Parent commits 28fc79b

Comments (0)

Files changed (1)

File ropemacs/__init__.py

     lisp.message(message.replace('%', '%%'))
 
 def occurrences_goto_occurrence():
-    start = lisp.line_beginning_position()
-    end = lisp.line_end_position()
+    lisp.end_of_line()
+    end = lisp.point()
+    lisp.beginning_of_line()
+    start = lisp.point()
     line = lisp.buffer_substring_no_properties(start, end)
     tokens = line.split()
     if tokens: