Le 19/01/21 à 14h32, Tassilo Horn a écrit :
> No, the problem is that the regexp which gets built for parsing the
> buffer inceases in size and eventually ends up having more than 255
> groups in it. That's the maximum supported by emacs. If you have
> more, you won't get an error but it simply won't work anymore, i.e.,
> if the 256th group matches and you call (match-beginning 256), you'll
> get nil.
I see.
> So basically what we are seeing here is a result of your "use and
> enable any latex package on earth" test file.
Note that wasn't the initial aim :)
> But maybe I can do something about it as it seems that there might be
> some duplicate entries.
Maybe it isn't worth working on this: it is rather an edge case
(usually, there is nothing after \end{document}) and I can
split this huge file in smaller ones.
> (Of course, you'll still be able to break it again by using more even
> styles.)
Yes, I could do better ;)
Thanks!
--
Denis