Commits

Anonymous committed 27717b7

rope-show-doc: not moving cursor in current buffer for emacs 21

  • Participants
  • Parent commits e37332c

Comments (0)

Files changed (1)

File ropemacs/lisputils.py

                 lisp.switch_to_buffer(new_buffer)
             else:
                 lisp.switch_to_buffer_other_window(new_buffer)
+            lisp.goto_char(lisp.point_min())
         elif window == 'other':
             new_window = lisp.display_buffer(new_buffer)
             lisp.set_window_point(new_window, lisp.point_min())
             if fit_lines and lisp.fboundp(lisp['fit-window-to-buffer']):
                 lisp.fit_window_to_buffer(new_window, fit_lines)
-
-        lisp.goto_char(lisp.point_min())
     return new_buffer