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.
This commit is contained in:
parent
40f5d4b760
commit
5132f910f3
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-06-24 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.
|
||||
|
||||
2014-06-24 Eli Barzilay <eli@barzilay.org>
|
||||
|
||||
* calculator.el (calculator-last-input): drop 'ascii-character property
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue