From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Stackoverflow in regexp matcher Date: Wed, 03 Feb 2016 12:34:41 +0100 Message-ID: <87y4b2owmm.fsf@hornfels.zedat.fu-berlin.de> References: <87oabzb4h8.fsf@hornfels.zedat.fu-berlin.de> <878u33dsh0.fsf@alphaville.usersys.redhat.com> <87y4b2qm7h.fsf@hornfels.zedat.fu-berlin.de> <87si1a9h2o.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQvi1-0004qJ-9O for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 06:34:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQvhw-0006gz-Bd for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 06:34:53 -0500 Received: from plane.gmane.org ([80.91.229.3]:34729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQvhw-0006gV-4U for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 06:34:48 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aQvhu-0001Bf-St for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 12:34:46 +0100 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Feb 2016 12:34:46 +0100 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Feb 2016 12:34:46 +0100 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > "Loris Bennett" writes: > >> re-search-forward("^[^%]*\\\\usepackage.*{biblatex}" nil t) > > This is a pathological regexp. [^%] is anything but a percent sign, so > it can contain newline characters. Basically [^%]* can match an entire > buffer if it doesn't contain any %. > > I think the regexp used in `reftex-using-biblatex-p' should be > > "^[^%\n]*\\\\usepackage.*{biblatex}" > > > Regards, So should this be filed as a bug against Emacs? In the meantime, aside from patching my own Emacs, would there be any other workaround, particularly considering that I don't currently need any biblatex functionality. Cheers, Loris -- This signature is currently under construction.