From: Ihor Radchenko Date: Thu, 26 Oct 2023 11:52:32 +0000 (+0300) Subject: * src/pdumper.c (dump_buffer): Print message when aborting (bug#66743) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c9e544501ae26ae328deefc05b5bf4874ead2d1;p=emacs.git * 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. --- diff --git a/src/pdumper.c b/src/pdumper.c index 315a31e2bcb..9a3870181e3 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -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;