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 10:00:06 -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]:38923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi4hM-00057A-Ci for emacs-orgmode@gnu.org; Sat, 25 Oct 2014 13:00:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi4hG-0001H0-7t for emacs-orgmode@gnu.org; Sat, 25 Oct 2014 13:00:16 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:55141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi4hF-0001Fg-W9 for emacs-orgmode@gnu.org; Sat, 25 Oct 2014 13:00:10 -0400 In-Reply-To: <20141024195101.GH11946@boo.workgroup> 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 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. >> >> >> For me somewhere between 400 and 500 lines is the difference between opening >> with no error message and opening with the message. >> >> Emacs 24.3.1 does not show this behavior - no error message. > > I cannot reproduce this. I even tried with a file with 8264216 [rest deleted] OK, thanks. It had to be something in my init. I have (defun org-mode-reftex-setup () ... ) from http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/ in my init. 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. ?? HTH, Chuck