Use quit-window to hide buffers temporarily displayed by xref
commit36bfd6947f8671eb279d8aa8f2976ada24361dec
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 19 Jan 2015 02:19:32 +0000 (19 04:19 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 19 Jan 2015 02:19:32 +0000 (19 04:19 +0200)
tree96e832885931f1419c3ae197d96d55187dfafff4
parentb87d7cc2493335c68f3376a0455a7b00224ca1f6
Use quit-window to hide buffers temporarily displayed by xref

* lisp/progmodes/xref.el (xref--display-history): New variable.
(xref--window-configuration): Remove.
(xref--save-to-history): New function.
(xref--display-position): Use it.  Add new argument.
(xref--restore-window-configuration): Remove.
(xref--show-location, xref-show-location-at-point): Update
accordingly.
(xref--xref-buffer-mode): Don't use `pre-command-hook'.
(xref--quit): New command.
(xref-goto-xref): Use it.
(xref--xref-buffer-mode-map): Bind `q' to it.
lisp/ChangeLog
lisp/progmodes/xref.el