aboutsummaryrefslogtreecommitdiffstats
path: root/src/textconv.c
diff options
context:
space:
mode:
authorPo Lu2023-06-11 14:35:13 +0800
committerPo Lu2023-06-11 14:35:13 +0800
commit24f25fc2f8823b1999fa66e4b21601ee4000f321 (patch)
tree73ffc3c062c2c8899b86d2973a5c985a83044084 /src/textconv.c
parent5abc977bbb2d38f3c607f1575e02aa7a6c483db0 (diff)
downloademacs-24f25fc2f8823b1999fa66e4b21601ee4000f321.tar.gz
emacs-24f25fc2f8823b1999fa66e4b21601ee4000f321.zip
Update Android port
* java/org/gnu/emacs/EmacsSurfaceView.java (EmacsSurfaceView): Document member variables. (onDraw): Use separate Paint object on the UI thread. * src/textconv.c (really_commit_text, really_set_composing_text) (really_delete_surrounding_text): Run modification hooks when deleting text.
Diffstat (limited to 'src/textconv.c')
-rw-r--r--src/textconv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/textconv.c b/src/textconv.c
index d86877b5515..6718568ac98 100644
--- a/src/textconv.c
+++ b/src/textconv.c
@@ -617,7 +617,7 @@ really_commit_text (struct frame *f, EMACS_INT position,
617 617
618 /* Now delete whatever needs to go. */ 618 /* Now delete whatever needs to go. */
619 619
620 del_range (start, end); 620 del_range_1 (start, end, true, false);
621 record_buffer_change (start, start, Qt); 621 record_buffer_change (start, start, Qt);
622 622
623 /* Don't record changes if TEXT is empty. */ 623 /* Don't record changes if TEXT is empty. */
@@ -821,7 +821,7 @@ really_set_composing_text (struct frame *f, ptrdiff_t position,
821 821
822 if (end != start) 822 if (end != start)
823 { 823 {
824 del_range (start, end); 824 del_range_1 (start, end, true, false);
825 set_point (start); 825 set_point (start);
826 record_buffer_change (start, start, Qt); 826 record_buffer_change (start, start, Qt);
827 } 827 }
@@ -841,7 +841,7 @@ really_set_composing_text (struct frame *f, ptrdiff_t position,
841 its end. */ 841 its end. */
842 start = marker_position (f->conversion.compose_region_start); 842 start = marker_position (f->conversion.compose_region_start);
843 end = marker_position (f->conversion.compose_region_end); 843 end = marker_position (f->conversion.compose_region_end);
844 del_range (start, end); 844 del_range_1 (start, end, true, false);
845 set_point (start); 845 set_point (start);
846 846
847 if (start != end) 847 if (start != end)
@@ -1041,7 +1041,7 @@ really_delete_surrounding_text (struct frame *f, ptrdiff_t left,
1041 start = max (BEGV, lstart - left); 1041 start = max (BEGV, lstart - left);
1042 end = min (ZV, rstart + right); 1042 end = min (ZV, rstart + right);
1043 1043
1044 text = del_range_1 (start, end, false, true); 1044 text = del_range_1 (start, end, true, true);
1045 record_buffer_change (start, start, text); 1045 record_buffer_change (start, start, text);
1046 } 1046 }
1047 else 1047 else
@@ -1051,14 +1051,14 @@ really_delete_surrounding_text (struct frame *f, ptrdiff_t left,
1051 1051
1052 start = rstart; 1052 start = rstart;
1053 end = min (ZV, rstart + right); 1053 end = min (ZV, rstart + right);
1054 text = del_range_1 (start, end, false, true); 1054 text = del_range_1 (start, end, true, true);
1055 record_buffer_change (start, start, Qnil); 1055 record_buffer_change (start, start, Qnil);
1056 1056
1057 /* Now delete what must be deleted on the left. */ 1057 /* Now delete what must be deleted on the left. */
1058 1058
1059 start = max (BEGV, lstart - left); 1059 start = max (BEGV, lstart - left);
1060 end = lstart; 1060 end = lstart;
1061 text = del_range_1 (start, end, false, true); 1061 text = del_range_1 (start, end, true, true);
1062 record_buffer_change (start, start, text); 1062 record_buffer_change (start, start, text);
1063 } 1063 }
1064 1064