From 9d2497a79bb466ba8ba35bd01c5a959793330bdc Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 27 May 2024 17:59:36 +0800 Subject: [PATCH] Fix minor issues in textconv.c * src/textconv.c (really_commit_text): Introduce a few additional debugging printouts. (locate_and_save_position_in_field): Fix typo. (cherry picked from commit 435df51d1e7bffd768de15a6c91b7d6f7baa5cbf) --- src/textconv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/textconv.c b/src/textconv.c index 06d9af335c5..0e43bd9d458 100644 --- a/src/textconv.c +++ b/src/textconv.c @@ -632,6 +632,7 @@ really_commit_text (struct frame *f, EMACS_INT position, otherwise. */ mark = get_mark (); + TEXTCONV_DEBUG ("the mark is: %zd", mark); if (MARKERP (f->conversion.compose_region_start) || mark != -1) { /* Replace its contents. Set START and END to the start and end @@ -649,6 +650,9 @@ really_commit_text (struct frame *f, EMACS_INT position, end = max (mark, PT); } + TEXTCONV_DEBUG ("replacing text in composing region: %zd, %zd", + start, end); + /* If it transpires that the start of the compose region is not point, move point there. */ @@ -1204,7 +1208,7 @@ locate_and_save_position_in_field (struct frame *f, struct window *w, { TEXTCONV_DEBUG ("confined composing region to %td, %td", newstart, newend); - Fset_marker (f->conversion.compose_region_end, + Fset_marker (f->conversion.compose_region_start, make_fixed_natnum (newstart), Qnil); Fset_marker (f->conversion.compose_region_end, make_fixed_natnum (newend), Qnil); -- 2.39.5