Commit b66511f7 authored by Leonard Randall's avatar Leonard Randall Committed by Tassilo Horn

Backport regexp stack overflow fix from emacs-24.

* 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. [Backport]
Signed-off-by: default avatarTassilo Horn <tsdh@gnu.org>
parent 7bf7edf5
2014-11-27 Leonard Randall <leonard.a.randall@gmail.com>
* 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. [Backport]
2014-11-27 Fabián Ezequiel Gallina <fgallina@gnu.org>
* progmodes/python.el (python-shell-completion-setup-code): Use
......
......@@ -357,7 +357,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))))
(defun reftex-locate-bibliography-files (master-dir &optional files)
"Scan buffer for bibliography macros and return file list."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment