]> git.eshelyaron.com Git - emacs.git/commit
Speed up project-find-regexp for simple regexps
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 1 May 2017 21:09:09 +0000 (00:09 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 1 May 2017 21:09:30 +0000 (00:09 +0300)
commitc99a3b90a010448c14475666cb78f05860b0e1c2
tree683b307c094c5c777e2cb6a5666cab4292640beb
parent80407a2d3fa0827288eaf4006f2af5e011402631
Speed up project-find-regexp for simple regexps

* lisp/progmodes/xref.el (xref--regexp-syntax-dependent-p):
New function.
(xref--collect-matches): Use it.  Don't try to enable the
appropriate major mode and file-local variables if the regexp
does not depend on the buffer's syntax (bug#26710).
(xref--collect-matches-1): Don't syntax-propertize in that
case either.
lisp/progmodes/xref.el