[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Stack overflow in regexp matcher
From: |
Alan Schmitt |
Subject: |
Re: [O] Stack overflow in regexp matcher |
Date: |
Fri, 28 Nov 2014 19:33:53 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (darwin) |
On 2014-10-25 12:34, "Charles C. Berry" <address@hidden> writes:
> Further, changing that regexp to
>
> "^[^%\n]*\\\\usepackage.*{biblatex}"
>
> and byte-compiling reftex-parse.el.gz seems to make the problem go away.
The auctex developers have fixed the issue, which will be available in
the next version of emacs (since reftex is bundled).
In the meantime, they suggested to add the following in a configuration
file:
#+begin_src emacs-lisp
(with-eval-after-load 'reftex-parse
(defun reftex-using-biblatex-p ()
"Return non-nil if we are using biblatex rather than bibtex."
(if (boundp 'TeX-active-styles)
;; the sophisticated AUCTeX way
(member "biblatex" TeX-active-styles)
;; poor-man's check...
(save-excursion
(re-search-forward "^[^%\n]*?\\\\usepackage.*{biblatex}" nil t)))))
#+end_src
Best,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] Stack overflow in regexp matcher,
Alan Schmitt <=