From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Stack overflow in regexp matcher Date: Sat, 25 Oct 2014 11:34:32 -0700 Message-ID: References: <20141024195101.GH11946@boo.workgroup> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi6Aj-0002kO-Kw for emacs-orgmode@gnu.org; Sat, 25 Oct 2014 14:34:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi6Ad-0003tD-Fo for emacs-orgmode@gnu.org; Sat, 25 Oct 2014 14:34:41 -0400 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:31585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi6Ad-0003t7-6m for emacs-orgmode@gnu.org; Sat, 25 Oct 2014 14:34:35 -0400 In-Reply-To: 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: Gregor Zattler Cc: emacs-orgmode On Sat, 25 Oct 2014, Charles C. Berry wrote: > On Fri, 24 Oct 2014, Gregor Zattler wrote: > >> Hi Charles, org-mode developers >> * Charles Berry [24. Oct. 2014]: >>> I do. Try this. Start emacs 24.4.1. >>> >>> 1) Copy this line: >>> >>> CLOCK: [2013-07-22 Mon 12:29]--[2013-07-22 Mon 15:26] => 2:57 >>> >>> into a new *.org file. >>> >>> 2) Save and close the file and reopen. >>> >>> 3) If no such error, kill the text in the buffer, and yank it twice. >>> >>> 4) Repeat 2 and 3 till the message >>> >>> File mode specification error: (error "Stack overflow in regexp >>> matcher") >>> >>> shows up. >>> >>> 5) prune lines from the file and try step 2 till the error disappears. >>> >>> [snip] > > It turns out that > > (re-search-forward "^[^%]*\\\\usepackage.*{biblatex}" nil t)) > > in reftex-using-biblatex-p is the culprit. > > So, the ECM is to save a file like that decribed above without the *.org > extension. > > Open it (in fundamental mode) and issue > > M-: (re-search-forward "^[^%]*\\\\usepackage.*{biblatex}" nil t)) > > and get > > eval: Stack overflow in regexp matcher > > So, maybe this is not an org-mode issue. ?? Further, changing that regexp to "^[^%\n]*\\\\usepackage.*{biblatex}" and byte-compiling reftex-parse.el.gz seems to make the problem go away. This seems to be well-known problem: http://www.emacswiki.org/emacs/MultilineRegexp Still, I am not sure why this happens in 24.4.1 and not previously. HTH, Chuck