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

From: Eli Zaretskii <[email-masked]>
Date: Wed, 25 Oct 2023 19:21:19 +0300

> From: Gerd Möllmann <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  [email-masked]
> Date: Wed, 25 Oct 2023 18:15:44 +0200
> 
> Ihor Radchenko <[email-masked]> writes:
> 
> > Eli Zaretskii <[email-masked]> writes:
> >
> >> The code which aborts:
> >>
> >>   if (!itree_empty_p (buffer->overlays))
> >>     /* We haven't implemented the code to dump overlays.  */  <<<<<<<<<<
> >>     emacs_abort ();
> >>
> >> Any questions?
> >
> > What is the difficulty dumping overlays?
> 
> If you are not trying to dump buffers, I think you won't need overlays.
> So, the question is why dump buffers?

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.