Mercurial > emacs
comparison src/insdel.c @ 27664:c5c27d509bdf
(del_range_1): Call update_compositions.
(del_range_both): Call update_compositions just once..
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 11 Feb 2000 02:20:49 +0000 |
parents | 96ecaefd97a0 |
children | 4b675266db04 |
comparison
equal
deleted
inserted
replaced
27663:5521ba01dafd | 27664:c5c27d509bdf |
---|---|
2051 to_byte = CHAR_TO_BYTE (to); | 2051 to_byte = CHAR_TO_BYTE (to); |
2052 | 2052 |
2053 deletion = del_range_2 (from, from_byte, to, to_byte, ret_string); | 2053 deletion = del_range_2 (from, from_byte, to, to_byte, ret_string); |
2054 GCPRO1(deletion); | 2054 GCPRO1(deletion); |
2055 signal_after_change (from, to - from, 0); | 2055 signal_after_change (from, to - from, 0); |
2056 update_compositions (from, from, CHECK_HEAD); | |
2056 UNGCPRO; | 2057 UNGCPRO; |
2057 return deletion; | 2058 return deletion; |
2058 } | 2059 } |
2059 | 2060 |
2060 /* Like del_range_1 but args are byte positions, not char positions. */ | 2061 /* Like del_range_1 but args are byte positions, not char positions. */ |
2129 to_byte = CHAR_TO_BYTE (to); | 2130 to_byte = CHAR_TO_BYTE (to); |
2130 } | 2131 } |
2131 | 2132 |
2132 del_range_2 (from, from_byte, to, to_byte, 0); | 2133 del_range_2 (from, from_byte, to, to_byte, 0); |
2133 signal_after_change (from, to - from, 0); | 2134 signal_after_change (from, to - from, 0); |
2134 update_compositions (from, from, CHECK_HEAD); | |
2135 update_compositions (from, from, CHECK_HEAD); | 2135 update_compositions (from, from, CHECK_HEAD); |
2136 } | 2136 } |
2137 | 2137 |
2138 /* Delete a range of text, specified both as character positions | 2138 /* Delete a range of text, specified both as character positions |
2139 and byte positions. FROM and TO are character positions, | 2139 and byte positions. FROM and TO are character positions, |