Reuse rgrep mechanics in xref-find-regexp
commit7f01832e1360b5203695d48605a45228f1362b42
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 2 Jun 2015 15:46:42 +0000 (2 18:46 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 2 Jun 2015 15:47:43 +0000 (2 18:47 +0300)
tree18331d8e6a5479eb160988faf0587b30c4be99b8
parent64f2d346b762a6e3180eba92b5cc96f82f370687
Reuse rgrep mechanics in xref-find-regexp

* lisp/progmodes/grep.el (rgrep-default-command):
Extract from `rgrep'.

* lisp/progmodes/xref.el (xref-collect-references): Split from
`xref-collect-matches'.  Only handle the case of symbol search.
(xref-collect-matches): Instead of Semantic Symref, use
`rgrep-default-command', to take advantage of its directory and
file ignore settings.
(xref--collect-match): Remove the last argument, leaving the
regexp construction up to the caller.

* lisp/progmodes/elisp-mode.el (elisp--xref-find-matches):
Change to take the xref-collect- function to use as an argument.
(elisp-xref-find): Update accordingly.

* lisp/progmodes/etags.el (etags--xref-find-matches)
(etags-xref-find): Same.
lisp/progmodes/elisp-mode.el
lisp/progmodes/etags.el
lisp/progmodes/grep.el
lisp/progmodes/xref.el