]> git.eshelyaron.com Git - emacs.git/commitdiff
Make search in reftex-using-biblatex-p non-greedy.
authorLeonard Randall <leonard.a.randall@gmail.com>
Tue, 24 Jun 2014 19:39:22 +0000 (21:39 +0200)
committerTassilo Horn <tsdh@gnu.org>
Tue, 24 Jun 2014 19:39:22 +0000 (21:39 +0200)
* 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.

lisp/ChangeLog
lisp/textmodes/reftex-parse.el

index 1ce15a3c8b651f4248b12e7a550eeb8128271c6e..6d73731feaa3f6d20c9fd58fe188903feadd32ba 100644 (file)
@@ -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
index 5b0433475b6c81664387ae17d04dfe18feef6eb7..ce73939ac32bf6127f8861d39cbe06de372b7441 100644 (file)
@@ -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)