Don't remap `next-line' and `previous-line' in xref keymap
commit5496236583e22bce185650988a1ae675216e883e
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 3 Jan 2015 13:53:18 +0000 (3 15:53 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 3 Jan 2015 21:10:36 +0000 (3 23:10 +0200)
tree0d1d599318aa446c717ad40656872687011aebc6
parentc6e9f7838aaf2efbb519c7401a60caffa36a4f9d
Don't remap `next-line' and `previous-line' in xref keymap

* lisp/progmodes/xref.el (xref--window-configuration): New variable.
(xref-show-location-at-point): New command.
(xref--restore-window-configuration): New function.
(xref-next-line, xref-prev-line): Delegate to
`xref-show-location-at-point'.
(xref--location-at-point): Don't signal the error.
(xref-goto-xref): Do that here instead.
(xref--xref-buffer-mode): Add `xref--restore-window-configuration'
to `pre-command-hook'.
(xref--xref-buffer-mode-map): Don't remap `next-line' and
`previous-line'.  Additionally bind `xref-next-line' and
`xref-prev-line' to `n' and `p' respectively.  Bind
`xref-show-location-at-point' to `C-o'.
lisp/ChangeLog
lisp/progmodes/xref.el