• Dmitry Gutov's avatar
    Use quit-window to hide buffers temporarily displayed by xref · 36bfd694
    Dmitry Gutov authored
    * 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.
    36bfd694
ChangeLog 870 KB