]> git.eshelyaron.com Git - emacs.git/commit
Xref: automatic jumping to the first definition or reference
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 5 Sep 2021 00:35:43 +0000 (03:35 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 5 Sep 2021 00:35:43 +0000 (03:35 +0300)
commit1be8bfae6b1f9a0291a0be36fef0417a14657fc3
treeabf6210550548f0c8b361a5ee28f03b3fdebff73
parent1d36043809cae3cbb5338e5bea47073bc56e082c
Xref: automatic jumping to the first definition or reference

* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref): New user options.
Discussed in bug#50067.
(xref--show-xrefs, xref--show-defs): Use them here.
(xref--auto-jump-first): New function, handles different values.
(xref-show-definitions-buffer)
(xref-show-definitions-buffer-at-bottom): Use it.
lisp/progmodes/xref.el