emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Stack overflow in regexp matcher


From: Charles C. Berry
Subject: Re: [O] Stack overflow in regexp matcher
Date: Sat, 25 Oct 2014 11:34:32 -0700
User-agent: Alpine 2.00 (OSX 1167 2008-08-23)

On Sat, 25 Oct 2014, Charles C. Berry wrote:

On Fri, 24 Oct 2014, Gregor Zattler wrote:

Hi Charles, org-mode developers
* Charles Berry <address@hidden> [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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]