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

From: Eli Zaretskii <[email-masked]>
Date: Thu, 26 Oct 2023 18:49:50 +0300

> From: Ihor Radchenko <[email-masked]>
> Cc: [email-masked], [email-masked], [email-masked]
> Date: Thu, 26 Oct 2023 13:48:47 +0000
> 
> --- a/src/pdumper.c
> +++ b/src/pdumper.c
> @@ -2862,8 +2862,11 @@ dump_buffer (struct dump_context *ctx, const struct buffer *in_buffer)
>    DUMP_FIELD_COPY (out, buffer, long_line_optimizations_p);
>  
>    if (!itree_empty_p (buffer->overlays))
> -    /* We haven't implemented the code to dump overlays.  */
> -    emacs_abort ();
> +    {
> +      /* We haven't implemented the code to dump overlays.  */
> +      error ("Dumping overlays in buffers is not yet implemented.  Aborting...\n");
> +      emacs_abort ();
> +    }

If you call 'error' in batch mode, do you really need emacs_abort?