* src/process.c (read_and_insert_process_output):
* src/insdel.c (insert_from_gap):
* src/coding.h (struct coding_system): Improve comments (bug#71525).
(cherry picked from commit
0372ce5f60c18956738a31985569b86444d52ec5)
/* Set to true if charbuf contains an annotation. */
bool_bf annotated : 1;
- /* True to insert before markers in the output buffer,
- if `dst_object' is a buffer. */
+ /* True if the decoded text should be inserted before markers in the
+ output buffer, if `dst_object' is a buffer. Currently used only
+ when reading output from subprocesses. */
bool_bf insert_before_markers : 1;
/* Used internally in coding.c. See the comment of detect_ascii. */
starting at GAP_END_ADDR - NBYTES (if text_at_gap_tail) and at
GPT_ADDR (if not text_at_gap_tail).
- If BEFORE_MARKERS is true, insert before markers. At the moment the
- only high-level callers of this functionality is
- read_and_insert_process_output in process.c. */
+ If BEFORE_MARKERS is true, insert before markers. At the moment only
+ read_and_insert_process_output in process.c sets this to true. */
void
insert_from_gap (ptrdiff_t nchars, ptrdiff_t nbytes, bool text_at_gap_tail,
specpdl_ref count1 = SPECPDL_INDEX ();
XSETBUFFER (curbuf, current_buffer);
+ /* See the comment above about inserting before markers. */
process_coding->insert_before_markers = true;
/* We cannot allow after-change-functions be run
during decoding, because that might modify the