[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r117389: Make search in reftex-using-biblatex-p non-
From: |
Tassilo Horn |
Subject: |
[Emacs-diffs] trunk r117389: Make search in reftex-using-biblatex-p non-greedy. |
Date: |
Tue, 24 Jun 2014 19:41:05 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117389
revision-id: address@hidden
parent: address@hidden
author: Leonard Randall <address@hidden>
committer: Tassilo Horn <address@hidden>
branch nick: trunk
timestamp: Tue 2014-06-24 21:39:22 +0200
message:
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.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/textmodes/reftex-parse.el
reftexparse.el-20091113204419-o5vbwnq5f7feedwu-1334
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2014-06-24 07:55:36 +0000
+++ b/lisp/ChangeLog 2014-06-24 19:39:22 +0000
@@ -1,3 +1,9 @@
+2014-06-24 Leonard Randall <address@hidden>
+
+ * 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 <address@hidden>
* calculator.el (calculator-last-input): drop 'ascii-character property
=== modified file 'lisp/textmodes/reftex-parse.el'
--- a/lisp/textmodes/reftex-parse.el 2014-05-04 19:37:56 +0000
+++ b/lisp/textmodes/reftex-parse.el 2014-06-24 19:39:22 +0000
@@ -363,7 +363,7 @@
(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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r117389: Make search in reftex-using-biblatex-p non-greedy.,
Tassilo Horn <=