From: Dmitry Gutov Date: Tue, 11 Jun 2024 01:51:25 +0000 (+0300) Subject: read_and_insert_process_output: Call 'prepare_to_modify_buffer' first X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=913d41f39f82f3886d05d33253586b6df064fee9;p=emacs.git read_and_insert_process_output: Call 'prepare_to_modify_buffer' first * src/process.c (read_and_insert_process_output): Call 'prepare_to_modify_buffer' before any insertions (bug#71452). (cherry picked from commit 5a576069fcd803a6a5260a2da8ce0862be982eb4) --- diff --git a/src/process.c b/src/process.c index 547cdbb0c45..c00eba086a2 100644 --- a/src/process.c +++ b/src/process.c @@ -6362,6 +6362,8 @@ read_and_insert_process_output (struct Lisp_Process *p, char *buf, &opoint_byte); /* Adapted from call_process. */ + prepare_to_modify_buffer (PT, PT, NULL); + if (NILP (BVAR (XBUFFER (p->buffer), enable_multibyte_characters)) && ! CODING_MAY_REQUIRE_DECODING (process_coding)) {