From: Kenichi Handa Date: Mon, 11 Jan 1999 11:42:52 +0000 (+0000) Subject: (del_range_1): Call signal_after_change. X-Git-Tag: emacs-20.4~908 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9c36993afd877acd6c219bb402c69aa4a47569c3;p=emacs.git (del_range_1): Call signal_after_change. (del_range_byte): Likewise. (del_range_both): Likewise. (del_range_2): Don't call signal_after_change. --- diff --git a/src/insdel.c b/src/insdel.c index 3c056ffe41f..87f0a7898dc 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -2063,6 +2063,7 @@ del_range_1 (from, to, prepare) to_byte = CHAR_TO_BYTE (to); del_range_2 (from, from_byte, to, to_byte); + signal_after_change (from, to - from, 0); } /* Like del_range_1 but args are byte positions, not char positions. */ @@ -2099,6 +2100,7 @@ del_range_byte (from_byte, to_byte, prepare) } del_range_2 (from, from_byte, to, to_byte); + signal_after_change (from, to - from, 0); } /* Like del_range_1, but positions are specified both as charpos @@ -2136,6 +2138,7 @@ del_range_both (from, from_byte, to, to_byte, prepare) } del_range_2 (from, from_byte, to, to_byte); + signal_after_change (from, to - from, 0); } /* Delete a range of text, specified both as character positions @@ -2263,7 +2266,6 @@ del_range_2 (from, from_byte, to, to_byte) CHECK_MARKERS (); evaporate_overlays (from); - signal_after_change (from, nchars_del, 0); } /* Call this if you're about to change the region of BUFFER from