diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2017-05-02 00:09:09 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2017-05-02 00:09:30 +0300 |
commit | c99a3b90a010448c14475666cb78f05860b0e1c2 (patch) | |
tree | 683b307c094c5c777e2cb6a5666cab4292640beb /lisp/emacs-lisp/checkdoc.el | |
parent | 80407a2d3fa0827288eaf4006f2af5e011402631 (diff) | |
download | emacs-c99a3b90a010448c14475666cb78f05860b0e1c2.tar.gz emacs-c99a3b90a010448c14475666cb78f05860b0e1c2.tar.bz2 emacs-c99a3b90a010448c14475666cb78f05860b0e1c2.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
0 files changed, 0 insertions, 0 deletions