diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2015-01-03 15:53:18 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2015-01-03 23:10:36 +0200 |
commit | 5496236583e22bce185650988a1ae675216e883e (patch) | |
tree | 0d1d599318aa446c717ad40656872687011aebc6 /lisp/emacs-lisp | |
parent | c6e9f7838aaf2efbb519c7401a60caffa36a4f9d (diff) | |
download | emacs-5496236583e22bce185650988a1ae675216e883e.tar.gz emacs-5496236583e22bce185650988a1ae675216e883e.tar.bz2 emacs-5496236583e22bce185650988a1ae675216e883e.zip |
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'.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions