From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Stack overflow in regexp matcher Date: Fri, 28 Nov 2014 19:33:53 +0100 Message-ID: References: <20141024195101.GH11946@boo.workgroup> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuQMo-0007Mr-9g for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 13:34:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuQMi-0006uM-7l for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 13:34:06 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:33377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuQMi-0006tf-1G for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 13:34:00 -0500 In-Reply-To: (Charles C. Berry's message of "Sat, 25 Oct 2014 11:34:32 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Charles C. Berry" Cc: emacs-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2014-10-25 12:34, "Charles C. Berry" 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 =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUeMAWAAoJEAQNCjtO0uXH9H4H/15NI8sCRrlVW7tHjmXTZ1al 2yRgW7gBcAaC+FJJB8AEitilGR+JmWc2y3aIGe449Mbi4dFbpIajQNbPDSgIrEDd YIP/gEGBtmkBEV2Fn0MC0KkyJgjHDTo2lq7TpqzrzmRFmGFGFBtm3JvLNLepSBkV k0pj47JLsdPxAD566L1LutFwfPj657hNZuuMDnva2FiPOxWnbmPk/3Qg25H+VJoS EJXxM6yqw40MbbNJA9QVQHefvM1jfRAGUjjxEhOM4cuKcHjfQQqSt2rcidlVA805 Sl3HyBsGASLgaMd0sRSBpHo3osKbMuwMDnbsy9ycJvYo3Om+r/2D7N+9YsD0als= =1W3J -----END PGP SIGNATURE----- --=-=-=--