1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-24 07:11:38 -07:00

xref-backend-references: Avoid finding duplicates

* lisp/progmodes/xref.el (xref-backend-references):
Cull subdirectories of other elements (bug#66683).
This commit is contained in:
Dmitry Gutov 2023-10-23 23:51:08 +03:00
parent eab9bdf79f
commit 391420d0c0

View file

@ -281,9 +281,10 @@ current project's main and external roots."
(xref-references-in-directory identifier dir)
(message "Searching %s... done" dir)))
(let ((pr (project-current t)))
(cons
(xref--project-root pr)
(project-external-roots pr)))))
(project-combine-directories
(cons
(xref--project-root pr)
(project-external-roots pr))))))
(cl-defgeneric xref-backend-apropos (backend pattern)
"Find all symbols that match PATTERN string.