comparison src/insdel.c @ 24041:2eed8853546f

(del_range_1): Call signal_after_change. (del_range_byte): Likewise. (del_range_both): Likewise. (del_range_2): Don't call signal_after_change.
author Kenichi Handa <handa@m17n.org>
date Mon, 11 Jan 1999 11:42:52 +0000
parents 869b3e83aa6b
children 39caae99e25d
comparison
equal deleted inserted replaced
24040:d178122d6122 24041:2eed8853546f
2061 2061
2062 from_byte = CHAR_TO_BYTE (from); 2062 from_byte = CHAR_TO_BYTE (from);
2063 to_byte = CHAR_TO_BYTE (to); 2063 to_byte = CHAR_TO_BYTE (to);
2064 2064
2065 del_range_2 (from, from_byte, to, to_byte); 2065 del_range_2 (from, from_byte, to, to_byte);
2066 signal_after_change (from, to - from, 0);
2066 } 2067 }
2067 2068
2068 /* Like del_range_1 but args are byte positions, not char positions. */ 2069 /* Like del_range_1 but args are byte positions, not char positions. */
2069 2070
2070 void 2071 void
2097 if (old_to == Z - to) 2098 if (old_to == Z - to)
2098 to_byte = CHAR_TO_BYTE (to); 2099 to_byte = CHAR_TO_BYTE (to);
2099 } 2100 }
2100 2101
2101 del_range_2 (from, from_byte, to, to_byte); 2102 del_range_2 (from, from_byte, to, to_byte);
2103 signal_after_change (from, to - from, 0);
2102 } 2104 }
2103 2105
2104 /* Like del_range_1, but positions are specified both as charpos 2106 /* Like del_range_1, but positions are specified both as charpos
2105 and bytepos. */ 2107 and bytepos. */
2106 2108
2134 if (old_to == Z - to) 2136 if (old_to == Z - to)
2135 to_byte = CHAR_TO_BYTE (to); 2137 to_byte = CHAR_TO_BYTE (to);
2136 } 2138 }
2137 2139
2138 del_range_2 (from, from_byte, to, to_byte); 2140 del_range_2 (from, from_byte, to, to_byte);
2141 signal_after_change (from, to - from, 0);
2139 } 2142 }
2140 2143
2141 /* Delete a range of text, specified both as character positions 2144 /* Delete a range of text, specified both as character positions
2142 and byte positions. FROM and TO are character positions, 2145 and byte positions. FROM and TO are character positions,
2143 while FROM_BYTE and TO_BYTE are byte positions. */ 2146 while FROM_BYTE and TO_BYTE are byte positions. */
2261 } 2264 }
2262 2265
2263 CHECK_MARKERS (); 2266 CHECK_MARKERS ();
2264 2267
2265 evaporate_overlays (from); 2268 evaporate_overlays (from);
2266 signal_after_change (from, nchars_del, 0);
2267 } 2269 }
2268 2270
2269 /* Call this if you're about to change the region of BUFFER from 2271 /* Call this if you're about to change the region of BUFFER from
2270 character positions START to END. This checks the read-only 2272 character positions START to END. This checks the read-only
2271 properties of the region, calls the necessary modification hooks, 2273 properties of the region, calls the necessary modification hooks,