From 913d41f39f82f3886d05d33253586b6df064fee9 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 11 Jun 2024 04:51:25 +0300 Subject: [PATCH] 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) --- src/process.c | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- 2.39.2