]> code.delx.au - gnu-emacs/commit
Rewrite elisp--xref-find-definitions to handle many more cases; add tests.
authorStephen Leake <stephen_leake@stephe-leake.org>
Tue, 11 Aug 2015 02:53:19 +0000 (21:53 -0500)
committerStephen Leake <stephen_leake@stephe-leake.org>
Tue, 11 Aug 2015 02:55:37 +0000 (21:55 -0500)
commitd7df36e745a5ba480559b6c8b5ebc93a18fe9bd1
tree736918633a929b4f88e871509b699f9a00dcf398
parent21e1673be3738fb79bd92cf8bd003d86ac51130b
Rewrite elisp--xref-find-definitions to handle many more cases; add tests.

* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location): deleted
(elisp--xref-format-cl-defmethod): new
(find-feature-regexp): new
(find-alias-regexp): new
(elisp--xref-make-xref): new
(elisp--xref-find-definitions): Rewrite using the above, handle many more
cases. Always output all available definitions.
(xref-location-marker): No need for special cases.

* test/automated/elisp-mode-tests.el: Add more tests of
elisp--xref-find-definitions, improve current tests.
lisp/progmodes/elisp-mode.el
test/automated/elisp-mode-tests.el