diff options
author | Leonard Randall <leonard.a.randall@gmail.com> | 2014-06-24 21:39:22 +0200 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2014-06-24 21:39:22 +0200 |
commit | 5132f910f3426fdb96f1e6e6ec5f8453d6fc5849 (patch) | |
tree | 8758311fd21dee17f0ab0e2f4e64d0ca87ae5cac /lisp/textmodes | |
parent | 40f5d4b76087eb5808ea228fc490b86cb9d85235 (diff) | |
download | emacs-5132f910f3426fdb96f1e6e6ec5f8453d6fc5849.tar.gz |
Make search in reftex-using-biblatex-p non-greedy.
* textmodes/reftex-parse.el (reftex-using-biblatex-p): Make search
for comment lines non-greedy and stopping at newlines to fix stack
overflows with large files.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/reftex-parse.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el index 5b0433475b6..ce73939ac32 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el @@ -363,7 +363,7 @@ of master file." (member "biblatex" TeX-active-styles) ;; poor-man's check... (save-excursion - (re-search-forward "^[^%]*\\\\usepackage.*{biblatex}" nil t)))) + (re-search-forward "^[^%\n]*?\\\\usepackage.*{biblatex}" nil t)))) ;;;###autoload (defun reftex-locate-bibliography-files (master-dir &optional files) |