aboutsummaryrefslogtreecommitdiffstats
path: root/src/textconv.c
diff options
context:
space:
mode:
authorPo Lu2024-05-27 17:59:36 +0800
committerPo Lu2024-05-27 18:01:00 +0800
commit435df51d1e7bffd768de15a6c91b7d6f7baa5cbf (patch)
tree9317001bb2d734b892ba03f7f8d28df67833792b /src/textconv.c
parent8283f0ae4ad7648a5fd4988e10b75878f4f87771 (diff)
downloademacs-435df51d1e7bffd768de15a6c91b7d6f7baa5cbf.tar.gz
emacs-435df51d1e7bffd768de15a6c91b7d6f7baa5cbf.zip
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.
Diffstat (limited to 'src/textconv.c')
-rw-r--r--src/textconv.c6
1 files changed, 5 insertions, 1 deletions
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,
632 otherwise. */ 632 otherwise. */
633 633
634 mark = get_mark (); 634 mark = get_mark ();
635 TEXTCONV_DEBUG ("the mark is: %zd", mark);
635 if (MARKERP (f->conversion.compose_region_start) || mark != -1) 636 if (MARKERP (f->conversion.compose_region_start) || mark != -1)
636 { 637 {
637 /* Replace its contents. Set START and END to the start and end 638 /* 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,
649 end = max (mark, PT); 650 end = max (mark, PT);
650 } 651 }
651 652
653 TEXTCONV_DEBUG ("replacing text in composing region: %zd, %zd",
654 start, end);
655
652 /* If it transpires that the start of the compose region is not 656 /* If it transpires that the start of the compose region is not
653 point, move point there. */ 657 point, move point there. */
654 658
@@ -1204,7 +1208,7 @@ locate_and_save_position_in_field (struct frame *f, struct window *w,
1204 { 1208 {
1205 TEXTCONV_DEBUG ("confined composing region to %td, %td", 1209 TEXTCONV_DEBUG ("confined composing region to %td, %td",
1206 newstart, newend); 1210 newstart, newend);
1207 Fset_marker (f->conversion.compose_region_end, 1211 Fset_marker (f->conversion.compose_region_start,
1208 make_fixed_natnum (newstart), Qnil); 1212 make_fixed_natnum (newstart), Qnil);
1209 Fset_marker (f->conversion.compose_region_end, 1213 Fset_marker (f->conversion.compose_region_end,
1210 make_fixed_natnum (newend), Qnil); 1214 make_fixed_natnum (newend), Qnil);