diff options
| author | Dmitry Gutov | 2024-06-11 04:51:25 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2024-06-11 04:51:37 +0300 |
| commit | 5a576069fcd803a6a5260a2da8ce0862be982eb4 (patch) | |
| tree | e38457badab132e9483a60ca1e7dc4115442e2c3 /src/process.c | |
| parent | f74f4089fd2f2d317b993e842556608833791de3 (diff) | |
| download | emacs-5a576069fcd803a6a5260a2da8ce0862be982eb4.tar.gz emacs-5a576069fcd803a6a5260a2da8ce0862be982eb4.zip | |
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).
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
| 6362 | &opoint_byte); | 6362 | &opoint_byte); |
| 6363 | 6363 | ||
| 6364 | /* Adapted from call_process. */ | 6364 | /* Adapted from call_process. */ |
| 6365 | prepare_to_modify_buffer (PT, PT, NULL); | ||
| 6366 | |||
| 6365 | if (NILP (BVAR (XBUFFER (p->buffer), enable_multibyte_characters)) | 6367 | if (NILP (BVAR (XBUFFER (p->buffer), enable_multibyte_characters)) |
| 6366 | && ! CODING_MAY_REQUIRE_DECODING (process_coding)) | 6368 | && ! CODING_MAY_REQUIRE_DECODING (process_coding)) |
| 6367 | { | 6369 | { |