diff options
| author | Dmitry Gutov | 2024-06-14 19:50:59 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2024-06-14 19:50:59 +0300 |
| commit | a8d5c5fd8789f28ddd040e497f03a988e5f0703c (patch) | |
| tree | 22a48883834d5d93f8aa52ee65bf67010e83c6e0 /src/coding.h | |
| parent | 08e38818f6ff4e514ac291bc5a7686f4390759b0 (diff) | |
| download | emacs-a8d5c5fd8789f28ddd040e497f03a988e5f0703c.tar.gz emacs-a8d5c5fd8789f28ddd040e497f03a988e5f0703c.zip | |
"Insert before markers" in read_and_insert_process_output properly
* src/coding.c (setup_coding_system): Initialize it.
(produce_chars, encode_coding, decode_coding_gap):
Obey it in insert_from_gap calls.
(encode_string_utf_8, decode_string_utf_8): Update the other calls
to insert_from_gap to have one new argument (false).
* src/coding.h: New field insert_before_markers.
* src/decompress.c (Fzlib_decompress_region): Here too.
* src/insdel.c (insert_from_gap):
Accept new argument BEFORE_MARKERS (bug#71525) and pass it through
to adjust_markers_for_insert.
* src/lisp.h: Update prototype.
* src/process.c (read_and_insert_process_output):
Set process_coding->insert_before_markers instead of calling
adjust_markers_for_insert.
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coding.h b/src/coding.h index 8905e36838d..d89257f23be 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -428,6 +428,10 @@ struct coding_system | |||
| 428 | /* Set to true if charbuf contains an annotation. */ | 428 | /* Set to true if charbuf contains an annotation. */ |
| 429 | bool_bf annotated : 1; | 429 | bool_bf annotated : 1; |
| 430 | 430 | ||
| 431 | /* True to insert before markers in the output buffer, | ||
| 432 | if `dst_object' is a buffer. */ | ||
| 433 | bool_bf insert_before_markers : 1; | ||
| 434 | |||
| 431 | /* Used internally in coding.c. See the comment of detect_ascii. */ | 435 | /* Used internally in coding.c. See the comment of detect_ascii. */ |
| 432 | unsigned eol_seen : 3; | 436 | unsigned eol_seen : 3; |
| 433 | 437 | ||