Commit 8c9e5445 authored by Ihor Radchenko's avatar Ihor Radchenko Committed by Eli Zaretskii
Browse files

* src/pdumper.c (dump_buffer): Print message when aborting (bug#66743)

When the buffer contains overlays, it cannot be dumped.  Print a
clear message describing the reason, instead of just aborting.
parent bbd4385a
Pipeline #26945 failed with stages
in 21 minutes and 12 seconds
......@@ -2862,8 +2862,10 @@ 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...");
}
else
out->overlays = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment