bug#22146: Stack overflow in reftex-parse-all

2015-12-13 Thread Tassilo Horn
David Kastrup writes: >> (re-search-forward "\\[[^]]*\\> >> at the beginning of the buffer suggested by Nils. So, it doesn't >> seem there is an incomplete match, but simply "\\[[^]]*" is too >> greedy. > > This expression contains only a single explicit wildcard. A

bug#22146: Stack overflow in reftex-parse-all

2015-12-13 Thread Mosè Giordano
Hi Tassilo, 2015-12-13 17:55 GMT+01:00 Tassilo Horn : > David Kastrup writes: > >>> (re-search-forward "\\[[^]]*\\>> >>> at the beginning of the buffer suggested by Nils. So, it doesn't >>> seem there is an incomplete match, but simply "\\[[^]]*" is too

bug#22146: Stack overflow in reftex-parse-all

2015-12-13 Thread Tassilo Horn
Mosè Giordano writes: >> I tried going up to a maximum of 3 and it still didn't overflow, > > It does for me, from 16667 to be precise. Interesting. >> so I think that's an appropriate fix (say, maybe 2000 instead of 1000 >> to be extra safe). Feel free to change

bug#22146: Stack overflow in reftex-parse-all

2015-12-13 Thread Tassilo Horn
David Kastrup writes: >> Isn't the syntax "\\[[^]]\\{0,1000\\}\\> a maximum of 3 and it still didn't overflow, so I think that's an >> appropriate fix (say, maybe 2000 instead of 1000 to be extra safe). >> Feel free to change

bug#22146: Stack overflow in reftex-parse-all

2015-12-13 Thread Tassilo Horn
Mosè Giordano writes: (re-search-forward "\\[[^]]*\\>> >>> This expression contains only a single

bug#22146: Stack overflow in reftex-parse-all

2015-12-12 Thread David Kastrup
Mosè Giordano writes: > I'm not completely sure how to fix a "Stack overflow in regexp > matcher" error: the problem is that it matches nothing or too much? It has incomplete matches in too many different ways. Something like .*.* is a trivial example of stuff that can usually

bug#22146: Stack overflow in reftex-parse-all

2015-12-12 Thread Nils Kanning
Hi Mosé and Tassilo, thanks a lot for your quick replies! With that workaround I can continue editing :-) Nils On Sat, 2015-12-12 at 08:54 +0100, Tassilo Horn wrote: > Mosè Giordano writes: > > Hi Nils & Mosé, > > > > In case you are wondering, the non-matching brackets [\}

bug#22146: Stack overflow in reftex-parse-all

2015-12-11 Thread Mosè Giordano
Hi Nils, 2015-12-11 22:03 GMT+01:00 Nils Kanning : > Dear all, > > I encounter the error "Stack overflow in regexp matcher" if I apply the > function reftex-parse-all to the following file: > > \documentclass{article} > \begin{document} > [\} > foo foo foo foo foo foo foo foo foo

bug#22146: Stack overflow in reftex-parse-all

2015-12-11 Thread Nils Kanning
Dear all, I encounter the error "Stack overflow in regexp matcher" if I apply the function reftex-parse-all to the following file: \documentclass{article} \begin{document} [\} foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo ... foo foo foo foo foo foo foo foo foo foo foo foo

bug#22146: Stack overflow in reftex-parse-all

2015-12-11 Thread Tassilo Horn
Mosè Giordano writes: Hi Nils & Mosé, >> In case you are wondering, the non-matching brackets [\} appear for >> example in physics as so-called "super Lie brackets". > > Thanks for taking the time to report this bug, I can reproduce it. I can reproduce it with Emacs 24.5 but not