]> git.eshelyaron.com Git - emacs.git/commit
Separate xref-find-definitions' behavior from other commands
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 22 May 2019 22:16:41 +0000 (01:16 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 22 May 2019 22:29:33 +0000 (01:29 +0300)
commit49a363c875c66f3d937a7d33e1a1451227a1887d
tree8cf69c27986e3969cb0781a3db1c1228a40dae4b
parent613565494d048ec758d5051484a17fdeccd42f00
Separate xref-find-definitions' behavior from other commands

* lisp/progmodes/xref.el (xref-show-definitions-function):
New variable.
(xref--show-defs): Split off from xref--show-xrefs.
(xref--find-definitions): Use it.
(xref--not-found-error): New function.
(xref--show-xrefs): Simplify.  Show the list buffer even when
there is just one item in the list.  Remove the last argument.

* lisp/dired-aux.el (dired-do-find-regexp): Update accordingly.
lisp/dired-aux.el
lisp/progmodes/xref.el