]> git.eshelyaron.com Git - emacs.git/commit
Localize namespace-filtering code
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 15 Sep 2021 02:33:06 +0000 (05:33 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 15 Sep 2021 02:33:06 +0000 (05:33 +0300)
commit1f54c7aeeddba90458260fd0d9515db904f3b1ad
treefb22e671cb921c051cae7fb0466a79cfa11a025f
parente4fdf87e713d1161ebeca56c3c1d93bd971bd7f5
Localize namespace-filtering code

To be able to filter results coming from
elisp-xref-find-def-functions, and for general ease of
understanding.

* lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions):
Undo the previous change.
(xref-backend-apropos): Update accordingly.
(elisp--xref-filter-definitions): New function.
(xref-backend-definitions): Use it to post-filter the results
coming from elisp--xref-find-definitions.

* test/lisp/progmodes/elisp-mode-tests.el (find-defs-minor-defvar-c):
New test.
(find-defs-defun-defvar-el): Update test.
lisp/progmodes/elisp-mode.el
test/lisp/progmodes/elisp-mode-tests.el