comparison src/insdel.c @ 15123:d6106d651a71

(signal_after_change): Correct the arg to report_overlay_modification.
author Richard M. Stallman <rms@gnu.org>
date Wed, 01 May 1996 21:25:49 +0000
parents 69fa625812a4
children 76bd16bb5906
comparison
equal deleted inserted replaced
15122:a46a40f1c30c 15123:d6106d651a71
834 834
835 /* Signal a change immediately after it happens. 835 /* Signal a change immediately after it happens.
836 POS is the address of the start of the changed text. 836 POS is the address of the start of the changed text.
837 LENDEL is the number of characters of the text before the change. 837 LENDEL is the number of characters of the text before the change.
838 (Not the whole buffer; just the part that was changed.) 838 (Not the whole buffer; just the part that was changed.)
839 LENINS is the number of characters in the changed text. 839 LENINS is the number of characters in that part of the text
840 840 after the change. */
841 (Hence POS + LENINS - LENDEL is the position after the changed text.) */
842 841
843 void 842 void
844 signal_after_change (pos, lendel, lenins) 843 signal_after_change (pos, lendel, lenins)
845 int pos, lendel, lenins; 844 int pos, lendel, lenins;
846 { 845 {
883 } 882 }
884 883
885 if (!NILP (current_buffer->overlays_before) 884 if (!NILP (current_buffer->overlays_before)
886 || !NILP (current_buffer->overlays_after)) 885 || !NILP (current_buffer->overlays_after))
887 report_overlay_modification (make_number (pos), 886 report_overlay_modification (make_number (pos),
888 make_number (pos + lenins - lendel), 887 make_number (pos + lenins),
889 1, 888 1,
890 make_number (pos), make_number (pos + lenins), 889 make_number (pos), make_number (pos + lenins),
891 make_number (lendel)); 890 make_number (lendel));
892 891
893 /* After an insertion, call the text properties 892 /* After an insertion, call the text properties