Subject: Re: bug#66743: 30.0.50; Crash when dumping reftex

From: Gerd Möllmann <[email-masked]>
Date: Wed, 25 Oct 2023 18:37:24 +0200

Eli Zaretskii <[email-masked]> writes:

> Emacs is always dumped with a few buffers, because temacs needs them
> to do the dumping.  See this comment text from buffer.c:
>
> 	 Implementation notes: the buffers we carry from temacs are:
> 	 " prin1", "*scratch*", " *Minibuf-0*", "*Messages*", and
> 	 " *code-conversion-work*".  They are created by
> 	 init_buffer_once and init_window_once (which are not called
> 	 in the dumped Emacs), and by the first call to coding.c
> 	 routines.

Thanks.

So, one idea would be to try and move the creation of these buffers from
the init_*_once functions to the "normal" init functions, and see what
happens. One would also have to take a closer look at coding.c, of course.