auctex
[Top][All Lists]

## Re: wrong-type-argument stringp nil

 From: Denis Bitouzé Subject: Re: wrong-type-argument stringp nil Date: Tue, 19 Jan 2021 15:24:30 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

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