]> git.eshelyaron.com Git - emacs.git/commit
"Insert before markers" in read_and_insert_process_output properly
authorDmitry Gutov <dmitry@gutov.dev>
Fri, 14 Jun 2024 16:50:59 +0000 (19:50 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:21:15 +0000 (19:21 +0200)
commitbbd98d4ecc213e7297a559ed49487492027565e4
tree253a2c7ff5e11cc3eb95b6712f059e700220e989
parent07868c9b4ecc88f89cd5e00088f5b44f9d80c490
"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.

(cherry picked from commit a8d5c5fd8789f28ddd040e497f03a988e5f0703c)
src/coding.c
src/coding.h
src/decompress.c
src/insdel.c
src/lisp.h
src/process.c