Commits

Anonymous committed 5978a0f

Binding q in occurrences buffer

  • Participants
  • Parent commits a347083

Comments (0)

Files changed (2)

File ropemacs/__init__.py

                                        text, switch=True)
         lisp.set_buffer(buffer)
         lisp.local_set_key('\r', lisp.rope_occurrences_goto_occurrence)
+        lisp.local_set_key('q', lisp.rope_occurrences_quit)
 
     @interactive
     def occurrences_goto_occurrence(self):
             lisp.switch_to_buffer_other_window('*rope-occurrences*')
 
     @interactive
+    def occurrences_quit(self):
+        lisputils.hide_buffer('*rope-occurrences*')
+
+    @interactive
     def code_assist(self):
         self._check_project()
         resource, offset = self._get_location()

File ropemacs/lisputils.py

         window = lisp.get_buffer_window(buffer)
         if window is not None:
             lisp.delete_window(window)
+            lisp.bury_buffer(buffer)
 
 
 class RunTask(object):